Skip to content

Commit 686a5d6

Browse files
committed
chore: format
1 parent 1437440 commit 686a5d6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test-dts/shallowMount.d-test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ const AppWithDefine = defineComponent({
1616

1717
// accept props
1818
// vm is properly typed
19-
expectType<string>(shallowMount(AppWithDefine, {
20-
props: { a: 'Hello', b: 2 }
21-
}).vm.a)
19+
expectType<string>(
20+
shallowMount(AppWithDefine, {
21+
props: { a: 'Hello', b: 2 }
22+
}).vm.a
23+
)
2224

2325
// allow extra props, like using `h()`
2426
shallowMount(AppWithDefine, {
@@ -69,9 +71,11 @@ const AppWithArrayProps = {
6971

7072
// accept props
7173
// vm is properly typed
72-
expectType<string>(shallowMount(AppWithArrayProps, {
73-
props: { a: 'Hello' }
74-
}).vm.a)
74+
expectType<string>(
75+
shallowMount(AppWithArrayProps, {
76+
props: { a: 'Hello' }
77+
}).vm.a
78+
)
7579

7680
// can receive extra props
7781
// as they are declared as `string[]`

0 commit comments

Comments
 (0)