@@ -94,6 +94,18 @@ describe('ssr: element', () => {
9494 ) . toMatchInlineSnapshot ( `"\`<div id=\\"foo\\" class=\\"bar\\"></div>\`"` )
9595 } )
9696
97+ test ( 'ignore static key/ref' , ( ) => {
98+ expect (
99+ getCompiledString ( `<div key="1" ref="el"></div>` )
100+ ) . toMatchInlineSnapshot ( `"\`<div></div>\`"` )
101+ } )
102+
103+ test ( 'ignore v-bind key/ref' , ( ) => {
104+ expect (
105+ getCompiledString ( `<div :key="1" :ref="el"></div>` )
106+ ) . toMatchInlineSnapshot ( `"\`<div></div>\`"` )
107+ } )
108+
97109 test ( 'v-bind:class' , ( ) => {
98110 expect ( getCompiledString ( `<div id="foo" :class="bar"></div>` ) )
99111 . toMatchInlineSnapshot ( `
@@ -139,7 +151,7 @@ describe('ssr: element', () => {
139151 ` )
140152 } )
141153
142- test ( 'v-bind:key (boolean)' , ( ) => {
154+ test ( 'v-bind:arg (boolean)' , ( ) => {
143155 expect ( getCompiledString ( `<input type="checkbox" :checked="checked">` ) )
144156 . toMatchInlineSnapshot ( `
145157 "\`<input type=\\"checkbox\\"\${
@@ -148,7 +160,7 @@ describe('ssr: element', () => {
148160 ` )
149161 } )
150162
151- test ( 'v-bind:key (non-boolean)' , ( ) => {
163+ test ( 'v-bind:arg (non-boolean)' , ( ) => {
152164 expect ( getCompiledString ( `<div :id="id" class="bar"></div>` ) )
153165 . toMatchInlineSnapshot ( `
154166 "\`<div\${
@@ -157,7 +169,7 @@ describe('ssr: element', () => {
157169 ` )
158170 } )
159171
160- test ( 'v-bind:[key ]' , ( ) => {
172+ test ( 'v-bind:[arg ]' , ( ) => {
161173 expect ( getCompiledString ( `<div v-bind:[key]="value"></div>` ) )
162174 . toMatchInlineSnapshot ( `
163175 "\`<div\${
0 commit comments