types: test cases typing
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user