@@ -69,21 +69,21 @@ describe('Actions.vue', () => {
69
69
const wrapper = mount (Actions, { store })
70
70
const input = wrapper .find (' input' )[0 ]
71
71
input .element .value = ' input'
72
- input .dispatch (' input' )
72
+ input .trigger (' input' )
73
73
expect (actions .actionInput .calledOnce ).to .equal (true )
74
74
})
75
75
76
76
it (' does not call store action actionInput when input value is not input and an input even is fired' , () => {
77
77
const wrapper = mount (Actions, { store })
78
78
const input = wrapper .find (' input' )[0 ]
79
79
input .element .value = ' not input'
80
- input .dispatch (' input' )
80
+ input .trigger (' input' )
81
81
expect (actions .actionInput .calledOnce ).to .equal (false )
82
82
})
83
83
84
84
it (' calls store action actionClick when button is clicked' , () => {
85
85
const wrapper = mount (Actions, { store })
86
- wrapper .find (' button' )[0 ].dispatch (' click' )
86
+ wrapper .find (' button' )[0 ].trigger (' click' )
87
87
expect (actions .actionClick .calledOnce ).to .equal (true )
88
88
})
89
89
})
@@ -245,7 +245,7 @@ describe('Modules.vue', () => {
245
245
it (' calls store action moduleActionClick when button is clicked' , () => {
246
246
const wrapper = mount (Modules, { store })
247
247
const button = wrapper .find (' button' )[0 ]
248
- button .dispatch (' click' )
248
+ button .trigger (' click' )
249
249
expect (actions .moduleActionClick .calledOnce ).to .equal (true )
250
250
})
251
251
0 commit comments