Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Mar 6, 2023
1 parent 37a1e37 commit 30f8611
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('sfc props transform', () => {
test('default values w/ runtime declaration & key is string', () => {
const { content, bindings } = compile(`
<script setup>
const { foo = 1, 'foo:bar':fooBar = 'foo-bar' } = defineProps(['foo', 'foo:bar'])
const { foo = 1, 'foo:bar': fooBar = 'foo-bar' } = defineProps(['foo', 'foo:bar'])
</script>
`)
expect(bindings).toStrictEqual({
Expand Down Expand Up @@ -125,11 +125,11 @@ describe('sfc props transform', () => {
const { content, bindings } = compile(`
<script setup lang="ts">
const { foo = 1, bar = 2, 'foo:bar': fooBar = 'foo-bar' } = defineProps<{
"foo": number // double-quoted string
'bar': number // single-quoted string
'foo:bar': string // single-quoted string containing symbols
"onUpdate:modelValue": (val: number)=>void } // double-quoted string containing symbols
>()
"foo": number // double-quoted string
'bar': number // single-quoted string
'foo:bar': string // single-quoted string containing symbols
"onUpdate:modelValue": (val: number) => void // double-quoted string containing symbols
}>()
</script>
`)
expect(bindings).toStrictEqual({
Expand Down

0 comments on commit 30f8611

Please sign in to comment.