test: fix clock test which broke JSON reporter

This commit is contained in:
Max Schmitt 2024-06-07 16:14:00 +02:00
parent 43d6d012d4
commit b022cae309

View file

@ -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));
}); });