Skip to content

Commit b1c1419

Browse files
committed
Merge branch 'fix/test'
2 parents 8b2a0bd + ba0e655 commit b1c1419

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/unit/components/HeaderGame.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ describe('HeaderGame.vue', () => {
1919

2020
it('methods', () => {
2121
window.setInterval = (func) => { func();};
22-
const wrapper = shallowMount(HeaderGame, args);
22+
const wrapper = shallowMount(HeaderGame, {...args, propsData:{
23+
remainingTime: 0,
24+
} });
2325

2426
expect(wrapper.vm.startedAt.getTime()).toBeLessThanOrEqual(new Date().getTime());
2527
expect(wrapper.vm.timerText).toEqual("00:00");
@@ -30,7 +32,9 @@ describe('HeaderGame.vue', () => {
3032

3133
it('methods', done => {
3234
const spy = jest.fn();
33-
const wrapper = shallowMount(HeaderGame, args);
35+
const wrapper = shallowMount(HeaderGame, {...args, propsData:{
36+
remainingTime: 0,
37+
} });
3438
wrapper.vm.startTimer = spy;
3539

3640
wrapper.setProps({round: 2});

0 commit comments

Comments
 (0)