types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import Toast from '../Toast';
import { mount } from '@vue/test-utils';
import { later } from '../../../test';
import { mount , later } from '../../../test';
test('should change overlay style after using overlay-style prop', async () => {
const wrapper = mount(Toast, {
@@ -13,7 +13,7 @@ test('should change overlay style after using overlay-style prop', async () => {
});
await later();
expect(wrapper.find('.van-overlay').element.style.background).toEqual('red');
expect(wrapper.find('.van-overlay').style.background).toEqual('red');
});
test('should close Toast when using closeOnClick prop and clicked', () => {