@@ -86,7 +86,7 @@ describe('sfc props transform', () => {
86
86
test ( 'default values w/ runtime declaration & key is string' , ( ) => {
87
87
const { content, bindings } = compile ( `
88
88
<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'])
90
90
</script>
91
91
` )
92
92
expect ( bindings ) . toStrictEqual ( {
@@ -125,11 +125,11 @@ describe('sfc props transform', () => {
125
125
const { content, bindings } = compile ( `
126
126
<script setup lang="ts">
127
127
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
+ } >()
133
133
</script>
134
134
` )
135
135
expect ( bindings ) . toStrictEqual ( {
0 commit comments