From 04c44c8f510940aea392658b1a22ae279e7ef32f Mon Sep 17 00:00:00 2001 From: Phil Efstathiou Date: Tue, 18 Jul 2017 14:10:49 +0100 Subject: [PATCH] Update using-with-vuex.md Pretty simple: changing "dispatch" to "trigger" --- docs/en/guides/using-with-vuex.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/guides/using-with-vuex.md b/docs/en/guides/using-with-vuex.md index 67f5db1f4..645663eb7 100644 --- a/docs/en/guides/using-with-vuex.md +++ b/docs/en/guides/using-with-vuex.md @@ -69,7 +69,7 @@ describe('Actions.vue', () => { const wrapper = mount(Actions, { store }) const input = wrapper.find('input')[0] input.element.value = 'input' - input.dispatch('input') + input.trigger('input') expect(actions.actionInput.calledOnce).to.equal(true) }) @@ -77,13 +77,13 @@ describe('Actions.vue', () => { const wrapper = mount(Actions, { store }) const input = wrapper.find('input')[0] input.element.value = 'not input' - input.dispatch('input') + input.trigger('input') expect(actions.actionInput.calledOnce).to.equal(false) }) it('calls store action actionClick when button is clicked', () => { const wrapper = mount(Actions, { store }) - wrapper.find('button')[0].dispatch('click') + wrapper.find('button')[0].trigger('click') expect(actions.actionClick.calledOnce).to.equal(true) }) }) @@ -245,7 +245,7 @@ describe('Modules.vue', () => { it('calls store action moduleActionClick when button is clicked', () => { const wrapper = mount(Modules, { store }) const button = wrapper.find('button')[0] - button.dispatch('click') + button.trigger('click') expect(actions.moduleActionClick.calledOnce).to.equal(true) })