Skip to content

Commit 92c00ee

Browse files
joernroedereddyerburgh
authored andcommitted
docs: fix evenOrOdd test description (#492)
1 parent dabb2fd commit 92c00ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ describe('Modules.vue', () => {
265265

266266
There are two approaches to testing a Vuex store. The first approach is to unit test the getters, mutations, and actions separately. The second approach is to create a store and test against that. We'll look at both approaches.
267267

268-
To see how to test a Vuex store, we're going to create a simple counter store. The store will have an `increment` mutation and a `counter` getter.
268+
To see how to test a Vuex store, we're going to create a simple counter store. The store will have an `increment` mutation and an `evenOrOdd` getter.
269269

270270
```js
271271
// mutations.js
@@ -321,7 +321,7 @@ test('evenOrOdd returns even if state.count is even', () => {
321321
expect(getters.evenOrOdd(state)).toBe('even')
322322
})
323323

324-
test('evenOrOdd returns odd if state.count is even', () => {
324+
test('evenOrOdd returns odd if state.count is odd', () => {
325325
const state = {
326326
count: 1
327327
}

0 commit comments

Comments
 (0)