We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b2a0bd + ba0e655 commit b1c1419Copy full SHA for b1c1419
1 file changed
tests/unit/components/HeaderGame.spec.js
@@ -19,7 +19,9 @@ describe('HeaderGame.vue', () => {
19
20
it('methods', () => {
21
window.setInterval = (func) => { func();};
22
- const wrapper = shallowMount(HeaderGame, args);
+ const wrapper = shallowMount(HeaderGame, {...args, propsData:{
23
+ remainingTime: 0,
24
+ } });
25
26
expect(wrapper.vm.startedAt.getTime()).toBeLessThanOrEqual(new Date().getTime());
27
expect(wrapper.vm.timerText).toEqual("00:00");
@@ -30,7 +32,9 @@ describe('HeaderGame.vue', () => {
30
32
31
33
it('methods', done => {
34
const spy = jest.fn();
35
36
37
38
wrapper.vm.startTimer = spy;
39
40
wrapper.setProps({round: 2});
0 commit comments