Skip to content

Commit 3fe62f1

Browse files
author
John Doe
committed
refactor: fix format
1 parent fc19fcc commit 3fe62f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('epochClock', () => {
1010
const c = epochClock();
1111
expect(c.timeOriginMs).toBe(500_000);
1212
expect(c.tid).toBe(1);
13-
expect(c.pid).toBe(10001);
13+
expect(c.pid).toBe(10_001);
1414
expect(typeof c.fromEpochMs).toBe('function');
1515
expect(typeof c.fromEpochUs).toBe('function');
1616
expect(typeof c.fromPerfMs).toBe('function');
@@ -30,7 +30,7 @@ describe('epochClock', () => {
3030
it('should use tid options', () => {
3131
expect(epochClock({ tid: 888 })).toStrictEqual(
3232
expect.objectContaining({
33-
pid: 10001,
33+
pid: 10_001,
3434
tid: 888,
3535
}),
3636
);
@@ -96,7 +96,7 @@ describe('epochClock', () => {
9696

9797
it.each([
9898
[0, 500_000_000],
99-
[1_000, 501_000_000],
99+
[1000, 501_000_000],
100100
])(
101101
'should convert performance milliseconds to microseconds',
102102
(perfMs, expected) => {
@@ -108,8 +108,8 @@ describe('epochClock', () => {
108108
const c = epochClock();
109109
expect([
110110
c.fromEntryStartTimeMs(0),
111-
c.fromEntryStartTimeMs(1_000),
112-
]).toStrictEqual([c.fromPerfMs(0), c.fromPerfMs(1_000)]);
111+
c.fromEntryStartTimeMs(1000),
112+
]).toStrictEqual([c.fromPerfMs(0), c.fromPerfMs(1000)]);
113113
});
114114

115115
it('should convert Date.now() milliseconds to microseconds', () => {

0 commit comments

Comments
 (0)