We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac5845e commit 122ca11Copy full SHA for 122ca11
test/specs/mount.spec.js
@@ -197,15 +197,18 @@ describeRunIf(process.env.TEST_ENV !== 'node',
197
expect(wrapper.vm.$options.listeners).to.equal(undefined)
198
})
199
200
- it('handles store correctly', () => {
+ it('injects store correctly', () => {
201
const localVue = createLocalVue()
202
localVue.use(Vuex)
203
const store = new Vuex.Store()
204
const wrapper = mount(ComponentAsAClass, {
205
store,
206
localVue
207
208
- console.log(wrapper.vm.$store.getters)
+ wrapper.vm.getters
209
+ mount({
210
+ template: '<div>{{$store.getters}}</div>'
211
+ }, { store, localVue })
212
213
214
it('propagates errors when they are thrown', () => {
0 commit comments