test: fix clock test which broke JSON reporter
This commit is contained in:
parent
43d6d012d4
commit
b022cae309
|
|
@ -1734,7 +1734,6 @@ it.describe('stubTimers', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('decide on Date.now support at call-time when supported', async ({ install }) => {
|
it('decide on Date.now support at call-time when supported', async ({ install }) => {
|
||||||
(Date.now as any) = () => {};
|
|
||||||
install({ now: 0 });
|
install({ now: 0 });
|
||||||
expect(Date.now).toEqual(expect.any(Function));
|
expect(Date.now).toEqual(expect.any(Function));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue