浏览代码

Fix typo (dispatch --> commit)

Winnie Hellmann 7 年之前
父节点
当前提交
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 */ } ]
     ])