Skip to content

Commit aaac230

Browse files
author
John Doe
committed
refactor: adjust unit test
1 parent 9487a3f commit aaac230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ describe('epochClock', () => {
3535
const epochMs = Date.now();
3636

3737
const result = c.fromEpochMs(epochMs);
38+
expect(result).toBeInteger();
3839
expect(result).toBe(Math.round(epochMs * 1000));
39-
expect(result).toBe(Math.round(result));
4040
});
4141

4242
it('should convert epoch microseconds to microseconds correctly', () => {
@@ -56,7 +56,7 @@ describe('epochClock', () => {
5656

5757
const result = c.fromPerfMs(perfMs);
5858
expect(result).toBe(expectedUs);
59-
expect(result).toBe(Math.round(result));
59+
expect(result).toBeInteger();
6060
});
6161

6262
it('should convert entry start time milliseconds to epoch microseconds correctly', () => {

0 commit comments

Comments
 (0)