1
0
Эх сурвалжийг харах

Fix typo (dispatch --> commit)

Winnie Hellmann 7 жил өмнө
parent
commit
677e69a846
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      docs/en/testing.md

+ 1 - 1
docs/en/testing.md

@@ -138,7 +138,7 @@ describe('actions', () => {
     
     actions.getAllProducts({ commit, state })
     
-    expect(dispatch.args).to.deep.equal([
+    expect(commit.args).to.deep.equal([
       [ 'REQUEST_PRODUCTS' ],
       [ 'RECEIVE_PRODUCTS', { /* mocked response */ } ]
     ])