Skip to content

Commit a7077e2

Browse files
Jinjiangeddyerburgh
authored andcommitted
docs: updated (#1093)
1 parent 2dee66c commit a7077e2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Diff for: docs/zh/api/wrapper-array/filter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ import Foo from './Foo.vue'
1919

2020
const wrapper = shallowMount(Foo)
2121
const filteredDivArray = wrapper.findAll('div')
22-
.filter(w => !w.classes('filtered'))
22+
.filter(w => !w.hasClass('filtered'))
2323
```

Diff for: docs/zh/guides/dom-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('键盘事件测试', () => {
158158
expect(wrapper.vm.quantity).toBe(0)
159159
})
160160

161-
it('上按键将数量设置为 1', () => {
161+
it('上按键将数量加 1', () => {
162162
const wrapper = mount(QuantityComponent)
163163
wrapper.trigger('keydown.up')
164164
expect(wrapper.vm.quantity).toBe(1)

Diff for: docs/zh/guides/using-with-vuex.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ export default {
276276
state.count++
277277
}
278278
}
279-
280279
```
281280

282281
```js
@@ -344,7 +343,8 @@ test('evenOrOdd returns odd if state.count is odd', () => {
344343
我们来写一个测试吧。当我们创建一个 store 时,我们会使用 `localVue` 来避免污染 Vue 的基础构造函数。该测试会使用 `store-config.js` 导出的配置创建一个 store:
345344

346345
```js
347-
// store-config.spec.js
346+
// store-config.js
347+
348348
import mutations from './mutations'
349349
import getters from './getters'
350350

@@ -358,6 +358,8 @@ export default {
358358
```
359359

360360
```js
361+
// store-config.spec.js
362+
361363
import { createLocalVue } from '@vue/test-utils'
362364
import Vuex from 'vuex'
363365
import storeConfig from './store-config'

0 commit comments

Comments
 (0)