Skip to content

Commit 31d443b

Browse files
committed
chore: format
1 parent 1437440 commit 31d443b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
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[]`

tests/setData.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ describe('setData', () => {
190190

191191
it('should keep Date object on setData', async () => {
192192
const wrapper = mount(
193-
defineComponent({
193+
{
194194
template: '<div/>',
195195
props: { modelValue: Date },
196196
data() {
197197
return { value: this.modelValue }
198198
}
199-
}),
199+
},
200200
{
201201
props: {
202202
modelValue: new Date('2022-08-10T12:15:54Z')

0 commit comments

Comments
 (0)