Skip to content

Commit 7516340

Browse files
chrisdianaeddyerburgh
authored andcommitted
docs: switch 'Action' component to 'Getters' (#568)
1 parent 878bccd commit 7516340

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Let’s see the test:
139139
``` js
140140
import { shallow, createLocalVue } from '@vue/test-utils'
141141
import Vuex from 'vuex'
142-
import Actions from '../../../src/components/Getters'
142+
import Getters from '../../../src/components/Getters'
143143

144144
const localVue = createLocalVue()
145145

@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161161
})
162162

163163
it('Renders "state.inputValue" in first p tag', () => {
164-
const wrapper = shallow(Actions, { store, localVue })
164+
const wrapper = shallow(Getters, { store, localVue })
165165
const p = wrapper.find('p')
166166
expect(p.text()).toBe(getters.inputValue())
167167
})
168168

169169
it('Renders "state.clicks" in second p tag', () => {
170-
const wrapper = shallow(Actions, { store, localVue })
170+
const wrapper = shallow(Getters, { store, localVue })
171171
const p = wrapper.findAll('p').at(1)
172172
expect(p.text()).toBe(getters.clicks().toString())
173173
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Jetons un œil à un test :
136136
``` js
137137
import { shallow, createLocalVue } from '@vue/test-utils'
138138
import Vuex from 'vuex'
139-
import Actions from '../../../src/components/Getters'
139+
import Getters from '../../../src/components/Getters'
140140

141141
const localVue = createLocalVue()
142142

@@ -158,13 +158,13 @@ describe('Getters.vue', () => {
158158
})
159159

160160
it('affiche `state.inputValue` dans la première balise <p>', () => {
161-
const wrapper = shallow(Actions, { store, localVue })
161+
const wrapper = shallow(Getters, { store, localVue })
162162
const p = wrapper.find('p')
163163
expect(p.text()).toBe(getters.inputValue())
164164
})
165165

166166
it('affiche `stat.clicks` dans la seconde balise <p>', () => {
167-
const wrapper = shallow(Actions, { store, localVue })
167+
const wrapper = shallow(Getters, { store, localVue })
168168
const p = wrapper.findAll('p').at(1)
169169
expect(p.text()).toBe(getters.clicks().toString())
170170
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default{
139139
``` js
140140
import { shallow, createLocalVue } from '@vue/test-utils'
141141
import Vuex from 'vuex'
142-
import Actions from '../../../src/components/Getters'
142+
import Getters from '../../../src/components/Getters'
143143

144144
const localVue = createLocalVue()
145145

@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161161
})
162162

163163
it('Renders state.inputValue in first p tag', () => {
164-
const wrapper = shallow(Actions, { store, localVue })
164+
const wrapper = shallow(Getters, { store, localVue })
165165
const p = wrapper.find('p')
166166
expect(p.text()).toBe(getters.inputValue())
167167
})
168168

169169
it('Renders state.clicks in second p tag', () => {
170-
const wrapper = shallow(Actions, { store, localVue })
170+
const wrapper = shallow(Getters, { store, localVue })
171171
const p = wrapper.findAll('p').at(1)
172172
expect(p.text()).toBe(getters.clicks().toString())
173173
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default{
137137
``` js
138138
import { shallow, createLocalVue } from '@vue/test-utils'
139139
import Vuex from 'vuex'
140-
import Actions from '../../../src/components/Getters'
140+
import Getters from '../../../src/components/Getters'
141141

142142
const localVue = createLocalVue()
143143

@@ -159,13 +159,13 @@ describe('Getters.vue', () => {
159159
})
160160

161161
it('Renders state.inputValue in first p tag', () => {
162-
const wrapper = shallow(Actions, { store, localVue })
162+
const wrapper = shallow(Getters, { store, localVue })
163163
const p = wrapper.find('p')
164164
expect(p.text()).toBe(getters.inputValue())
165165
})
166166

167167
it('Renders state.clicks in second p tag', () => {
168-
const wrapper = shallow(Actions, { store, localVue })
168+
const wrapper = shallow(Getters, { store, localVue })
169169
const p = wrapper.findAll('p').at(1)
170170
expect(p.text()).toBe(getters.clicks().toString())
171171
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default{
136136
``` js
137137
import { shallow, createLocalVue } from '@vue/test-utils'
138138
import Vuex from 'vuex'
139-
import Actions from '../../../src/components/Getters'
139+
import Getters from '../../../src/components/Getters'
140140

141141
const localVue = createLocalVue()
142142

@@ -158,13 +158,13 @@ describe('Getters.vue', () => {
158158
})
159159

160160
it('Отображает "state.inputValue" в первом теге p', () => {
161-
const wrapper = shallow(Actions, { store, localVue })
161+
const wrapper = shallow(Getters, { store, localVue })
162162
const p = wrapper.find('p')
163163
expect(p.text()).toBe(getters.inputValue())
164164
})
165165

166166
it('Отображает "state.clicks" во втором теге p', () => {
167-
const wrapper = shallow(Actions, { store, localVue })
167+
const wrapper = shallow(Getters, { store, localVue })
168168
const p = wrapper.findAll('p').at(1)
169169
expect(p.text()).toBe(getters.clicks().toString())
170170
})

docs/zh-cn/guides/using-with-vuex.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default{
139139
``` js
140140
import { shallow, createLocalVue } from '@vue/test-utils'
141141
import Vuex from 'vuex'
142-
import Actions from '../../../src/components/Getters'
142+
import Getters from '../../../src/components/Getters'
143143

144144
const localVue = createLocalVue()
145145

@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161161
})
162162

163163
it('在第一个 p 标签中渲染“state.inputValue”', () => {
164-
const wrapper = shallow(Actions, { store, localVue })
164+
const wrapper = shallow(Getters, { store, localVue })
165165
const p = wrapper.find('p')
166166
expect(p.text()).toBe(getters.inputValue())
167167
})
168168

169169
it('在第二个 p 标签中渲染“state.clicks”', () => {
170-
const wrapper = shallow(Actions, { store, localVue })
170+
const wrapper = shallow(Getters, { store, localVue })
171171
const p = wrapper.findAll('p').at(1)
172172
expect(p.text()).toBe(getters.clicks().toString())
173173
})

0 commit comments

Comments
 (0)