Skip to content

Commit 3d9f8a0

Browse files
committed
improve test case
1 parent 00d9007 commit 3d9f8a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ describe('Vuex', () => {
294294
}
295295
}
296296
})
297-
const vm = new Vue({
298-
store,
297+
const Comp = Vue.extend({
299298
vuex: {
300299
getters: {
301300
a: state => state.a
@@ -315,6 +314,7 @@ describe('Vuex', () => {
315314
}
316315
}]
317316
})
317+
const vm = new Comp({ store })
318318
expect(vm.a).to.equal(1)
319319
expect(vm.b).to.equal(2)
320320
vm.test(2)

0 commit comments

Comments
 (0)