Skip to content

Commit dec2e0d

Browse files
thien-hoangeddyerburgh
authored andcommitted
docs: fix typo (vuejs#549)
1 parent 386cc2c commit dec2e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default {
287287

288288
Getters, mutations, and actions are all JavaScript functions, so we can test them without using Vue Test Utils and Vuex.
289289

290-
The benefit to testing getters, mutations, and actions separately is that your unit tests are detailed. When they fail, you know exactly what is wrong with your code. The downside is that you will need to mock Vuex funtions, like `commit` and `dispatch`. This can lead to a situation where your unit tests pass, but your production code fails because your mocks are incorrect.
290+
The benefit to testing getters, mutations, and actions separately is that your unit tests are detailed. When they fail, you know exactly what is wrong with your code. The downside is that you will need to mock Vuex functions, like `commit` and `dispatch`. This can lead to a situation where your unit tests pass, but your production code fails because your mocks are incorrect.
291291

292292
We'll create two test files, `mutations.spec.js` and `getters.spec.js`:
293293

0 commit comments

Comments
 (0)