We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788b820 commit 364cc75Copy full SHA for 364cc75
resources/assets/js/__tests__/Modal.test.js
@@ -107,6 +107,11 @@ describe('modal', ()=>{
107
wrapper.vm.show();
108
await wrapper.vm.$nextTick();
109
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();
115
wrapper.vm.hide();
116
117
expect(wrapper.emitted()['update:visible'][1]).toEqual([false]);
0 commit comments