Skip to content

Commit b02d229

Browse files
author
John Doe
committed
refactor: fix unit tests
1 parent 65728f0 commit b02d229

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/utils/src/lib/clock-epoch.int.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ describe('epochClock', () => {
2020
expect(c.fromDateNowMs).toBeFunction();
2121
});
2222

23-
it('should support performance clock by default for epochNowUs', () => {
24-
const c = epochClock();
25-
expect(c.timeOriginMs).toBe(performance.timeOrigin);
26-
const nowUs = c.epochNowUs();
27-
expect(nowUs).toBe(Math.round(nowUs));
28-
const expectedUs = Date.now() * 1000;
29-
30-
expect(nowUs).toBeWithin(expectedUs - 2000, expectedUs + 1000);
31-
});
32-
3323
it('should convert epoch milliseconds to microseconds correctly', () => {
3424
const c = epochClock();
3525
const epochMs = Date.now();

0 commit comments

Comments
 (0)