test: fix index.spec.ts typing (#8201)

This commit is contained in:
neverland
2021-02-23 19:43:29 +08:00
committed by GitHub
parent f0f89f1c4c
commit 1170262d72
12 changed files with 34 additions and 45 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ test('should render success text correctly', async () => {
await later();
// loading
expect(wrapper.emitted('update:modelValue')[0][0]).toBeTruthy();
expect(wrapper.emitted<[boolean]>('update:modelValue')[0][0]).toBeTruthy();
await wrapper.setProps({ modelValue: true });
// success
@@ -133,7 +133,7 @@ test('should render success slot correctly', async () => {
// loading
const track = wrapper.find('.van-pull-refresh__track');
triggerDrag(track, 0, 100);
expect(wrapper.emitted('update:modelValue')[0][0]).toBeTruthy();
expect(wrapper.emitted<[boolean]>('update:modelValue')[0][0]).toBeTruthy();
await wrapper.setProps({ modelValue: true });
// success