Skip to content

Commit 6c60abb

Browse files
authored
Merge pull request #17 from philefstat/patch-1
Update using-with-vuex.md
2 parents e6fabf8 + 04c44c8 commit 6c60abb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/en/guides/using-with-vuex.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,21 @@ describe('Actions.vue', () => {
6969
const wrapper = mount(Actions, { store })
7070
const input = wrapper.find('input')[0]
7171
input.element.value = 'input'
72-
input.dispatch('input')
72+
input.trigger('input')
7373
expect(actions.actionInput.calledOnce).to.equal(true)
7474
})
7575

7676
it('does not call store action actionInput when input value is not input and an input even is fired', () => {
7777
const wrapper = mount(Actions, { store })
7878
const input = wrapper.find('input')[0]
7979
input.element.value = 'not input'
80-
input.dispatch('input')
80+
input.trigger('input')
8181
expect(actions.actionInput.calledOnce).to.equal(false)
8282
})
8383

8484
it('calls store action actionClick when button is clicked', () => {
8585
const wrapper = mount(Actions, { store })
86-
wrapper.find('button')[0].dispatch('click')
86+
wrapper.find('button')[0].trigger('click')
8787
expect(actions.actionClick.calledOnce).to.equal(true)
8888
})
8989
})
@@ -245,7 +245,7 @@ describe('Modules.vue', () => {
245245
it('calls store action moduleActionClick when button is clicked', () => {
246246
const wrapper = mount(Modules, { store })
247247
const button = wrapper.find('button')[0]
248-
button.dispatch('click')
248+
button.trigger('click')
249249
expect(actions.moduleActionClick.calledOnce).to.equal(true)
250250
})
251251

0 commit comments

Comments
 (0)