Skip to content

Commit 364cc75

Browse files
author
antoine
committed
Fix tests
1 parent 788b820 commit 364cc75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resources/assets/js/__tests__/Modal.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ describe('modal', ()=>{
107107
wrapper.vm.show();
108108
await wrapper.vm.$nextTick();
109109
expect(wrapper.emitted()['update:visible'][0]).toEqual([true]);
110+
// update visible prop manually like "update:" event handler
111+
wrapper.setProps({
112+
visible: true,
113+
});
114+
await wrapper.vm.$nextTick();
110115
wrapper.vm.hide();
111116
await wrapper.vm.$nextTick();
112117
expect(wrapper.emitted()['update:visible'][1]).toEqual([false]);

0 commit comments

Comments
 (0)