mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix Dialog test case (#2572)
This commit is contained in:
@@ -42,13 +42,13 @@ test('before close', () => {
|
||||
const cancel = wrapper.find('.van-dialog__cancel');
|
||||
|
||||
cancel.trigger('click');
|
||||
expect(wrapper.emitted('cancel')).toBeFalsy();
|
||||
expect(wrapper.emitted('input')).toBeFalsy();
|
||||
|
||||
wrapper.setProps({
|
||||
beforeClose: (action, done) => done()
|
||||
});
|
||||
cancel.trigger('click');
|
||||
expect(wrapper.emitted('cancel')).toBeTruthy();
|
||||
expect(wrapper.emitted('input')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('set default options', () => {
|
||||
|
Reference in New Issue
Block a user