test: improve test cases typing (#8202)

This commit is contained in:
neverland
2021-02-23 20:54:28 +08:00
committed by GitHub
parent 1170262d72
commit 2168382917
9 changed files with 50 additions and 46 deletions
@@ -25,7 +25,7 @@ test('should close Toast when using closeOnClick prop and clicked', () => {
});
wrapper.find('.van-toast').trigger('click');
expect(wrapper.emitted('update:show')[0][0]).toEqual(false);
expect(wrapper.emitted('update:show')[0]).toEqual([false]);
});
test('should close Toast when using closeOnClickOverlay prop and overlay is clicked', () => {
@@ -37,5 +37,5 @@ test('should close Toast when using closeOnClickOverlay prop and overlay is clic
});
wrapper.find('.van-overlay').trigger('click');
expect(wrapper.emitted('update:show')[0][0]).toEqual(false);
expect(wrapper.emitted('update:show')[0]).toEqual([false]);
});