Skip to content

Commit 30f8611

Browse files
committed
chore: format
1 parent 37a1e37 commit 30f8611

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)