Explorar o código

Fix typo (dispatch --> commit)

Winnie Hellmann %!s(int64=7) %!d(string=hai) anos
pai
achega
677e69a846
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 */ } ]
     ])