@@ -86,7 +86,7 @@ describe('sfc props transform', () => {
8686 test ( 'default values w/ runtime declaration & key is string' , ( ) => {
8787 const { content, bindings } = compile ( `
8888 <script setup>
89- const { foo = 1, 'foo:bar':fooBar = 'foo-bar' } = defineProps(['foo', 'foo:bar'])
89+ const { foo = 1, 'foo:bar': fooBar = 'foo-bar' } = defineProps(['foo', 'foo:bar'])
9090 </script>
9191 ` )
9292 expect ( bindings ) . toStrictEqual ( {
@@ -125,11 +125,11 @@ describe('sfc props transform', () => {
125125 const { content, bindings } = compile ( `
126126 <script setup lang="ts">
127127 const { foo = 1, bar = 2, 'foo:bar': fooBar = 'foo-bar' } = defineProps<{
128- "foo": number // double-quoted string
129- 'bar': number // single-quoted string
130- 'foo:bar': string // single-quoted string containing symbols
131- "onUpdate:modelValue": (val: number)=> void } // double-quoted string containing symbols
132- >()
128+ "foo": number // double-quoted string
129+ 'bar': number // single-quoted string
130+ 'foo:bar': string // single-quoted string containing symbols
131+ "onUpdate:modelValue": (val: number) => void // double-quoted string containing symbols
132+ } >()
133133 </script>
134134 ` )
135135 expect ( bindings ) . toStrictEqual ( {
0 commit comments