File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ Let’s see the test:
139
139
``` js
140
140
import { shallow , createLocalVue } from ' @vue/test-utils'
141
141
import Vuex from ' vuex'
142
- import Actions from ' ../../../src/components/Getters'
142
+ import Getters from ' ../../../src/components/Getters'
143
143
144
144
const localVue = createLocalVue ()
145
145
@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161
161
})
162
162
163
163
it (' Renders "state.inputValue" in first p tag' , () => {
164
- const wrapper = shallow (Actions , { store, localVue })
164
+ const wrapper = shallow (Getters , { store, localVue })
165
165
const p = wrapper .find (' p' )
166
166
expect (p .text ()).toBe (getters .inputValue ())
167
167
})
168
168
169
169
it (' Renders "state.clicks" in second p tag' , () => {
170
- const wrapper = shallow (Actions , { store, localVue })
170
+ const wrapper = shallow (Getters , { store, localVue })
171
171
const p = wrapper .findAll (' p' ).at (1 )
172
172
expect (p .text ()).toBe (getters .clicks ().toString ())
173
173
})
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ Jetons un œil à un test :
136
136
``` js
137
137
import { shallow , createLocalVue } from ' @vue/test-utils'
138
138
import Vuex from ' vuex'
139
- import Actions from ' ../../../src/components/Getters'
139
+ import Getters from ' ../../../src/components/Getters'
140
140
141
141
const localVue = createLocalVue ()
142
142
@@ -158,13 +158,13 @@ describe('Getters.vue', () => {
158
158
})
159
159
160
160
it (' affiche `state.inputValue` dans la première balise <p>' , () => {
161
- const wrapper = shallow (Actions , { store, localVue })
161
+ const wrapper = shallow (Getters , { store, localVue })
162
162
const p = wrapper .find (' p' )
163
163
expect (p .text ()).toBe (getters .inputValue ())
164
164
})
165
165
166
166
it (' affiche `stat.clicks` dans la seconde balise <p>' , () => {
167
- const wrapper = shallow (Actions , { store, localVue })
167
+ const wrapper = shallow (Getters , { store, localVue })
168
168
const p = wrapper .findAll (' p' ).at (1 )
169
169
expect (p .text ()).toBe (getters .clicks ().toString ())
170
170
})
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export default{
139
139
``` js
140
140
import { shallow , createLocalVue } from ' @vue/test-utils'
141
141
import Vuex from ' vuex'
142
- import Actions from ' ../../../src/components/Getters'
142
+ import Getters from ' ../../../src/components/Getters'
143
143
144
144
const localVue = createLocalVue ()
145
145
@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161
161
})
162
162
163
163
it (' Renders state.inputValue in first p tag' , () => {
164
- const wrapper = shallow (Actions , { store, localVue })
164
+ const wrapper = shallow (Getters , { store, localVue })
165
165
const p = wrapper .find (' p' )
166
166
expect (p .text ()).toBe (getters .inputValue ())
167
167
})
168
168
169
169
it (' Renders state.clicks in second p tag' , () => {
170
- const wrapper = shallow (Actions , { store, localVue })
170
+ const wrapper = shallow (Getters , { store, localVue })
171
171
const p = wrapper .findAll (' p' ).at (1 )
172
172
expect (p .text ()).toBe (getters .clicks ().toString ())
173
173
})
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export default{
137
137
``` js
138
138
import { shallow , createLocalVue } from ' @vue/test-utils'
139
139
import Vuex from ' vuex'
140
- import Actions from ' ../../../src/components/Getters'
140
+ import Getters from ' ../../../src/components/Getters'
141
141
142
142
const localVue = createLocalVue ()
143
143
@@ -159,13 +159,13 @@ describe('Getters.vue', () => {
159
159
})
160
160
161
161
it (' Renders state.inputValue in first p tag' , () => {
162
- const wrapper = shallow (Actions , { store, localVue })
162
+ const wrapper = shallow (Getters , { store, localVue })
163
163
const p = wrapper .find (' p' )
164
164
expect (p .text ()).toBe (getters .inputValue ())
165
165
})
166
166
167
167
it (' Renders state.clicks in second p tag' , () => {
168
- const wrapper = shallow (Actions , { store, localVue })
168
+ const wrapper = shallow (Getters , { store, localVue })
169
169
const p = wrapper .findAll (' p' ).at (1 )
170
170
expect (p .text ()).toBe (getters .clicks ().toString ())
171
171
})
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export default{
136
136
``` js
137
137
import { shallow , createLocalVue } from ' @vue/test-utils'
138
138
import Vuex from ' vuex'
139
- import Actions from ' ../../../src/components/Getters'
139
+ import Getters from ' ../../../src/components/Getters'
140
140
141
141
const localVue = createLocalVue ()
142
142
@@ -158,13 +158,13 @@ describe('Getters.vue', () => {
158
158
})
159
159
160
160
it (' Отображает "state.inputValue" в первом теге p' , () => {
161
- const wrapper = shallow (Actions , { store, localVue })
161
+ const wrapper = shallow (Getters , { store, localVue })
162
162
const p = wrapper .find (' p' )
163
163
expect (p .text ()).toBe (getters .inputValue ())
164
164
})
165
165
166
166
it (' Отображает "state.clicks" во втором теге p' , () => {
167
- const wrapper = shallow (Actions , { store, localVue })
167
+ const wrapper = shallow (Getters , { store, localVue })
168
168
const p = wrapper .findAll (' p' ).at (1 )
169
169
expect (p .text ()).toBe (getters .clicks ().toString ())
170
170
})
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export default{
139
139
``` js
140
140
import { shallow , createLocalVue } from ' @vue/test-utils'
141
141
import Vuex from ' vuex'
142
- import Actions from ' ../../../src/components/Getters'
142
+ import Getters from ' ../../../src/components/Getters'
143
143
144
144
const localVue = createLocalVue ()
145
145
@@ -161,13 +161,13 @@ describe('Getters.vue', () => {
161
161
})
162
162
163
163
it (' 在第一个 p 标签中渲染“state.inputValue”' , () => {
164
- const wrapper = shallow (Actions , { store, localVue })
164
+ const wrapper = shallow (Getters , { store, localVue })
165
165
const p = wrapper .find (' p' )
166
166
expect (p .text ()).toBe (getters .inputValue ())
167
167
})
168
168
169
169
it (' 在第二个 p 标签中渲染“state.clicks”' , () => {
170
- const wrapper = shallow (Actions , { store, localVue })
170
+ const wrapper = shallow (Getters , { store, localVue })
171
171
const p = wrapper .findAll (' p' ).at (1 )
172
172
expect (p .text ()).toBe (getters .clicks ().toString ())
173
173
})
You can’t perform that action at this time.
0 commit comments