We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4848b8 commit 173134eCopy full SHA for 173134e
1 file changed
packages/utils/src/lib/clock-epoch.unit.test.ts
@@ -9,7 +9,7 @@ describe('epochClock', () => {
9
it('should create epoch clock with defaults', () => {
10
const c = epochClock();
11
expect(c.timeOriginMs).toBe(500_000);
12
- expect(c.tid).toBe(1);
+ expect(c.tid).toBeGreaterThan(0);
13
expect(c.pid).toBe(10_001);
14
expect(typeof c.fromEpochMs).toBe('function');
15
expect(typeof c.fromEpochUs).toBe('function');
@@ -22,15 +22,13 @@ describe('epochClock', () => {
22
expect(epochClock({ pid: 999 })).toStrictEqual(
23
expect.objectContaining({
24
pid: 999,
25
- tid: 1,
26
}),
27
);
28
});
29
30
it('should use tid options', () => {
31
expect(epochClock({ tid: 888 })).toStrictEqual(
32
33
- pid: 10_001,
34
tid: 888,
35
36
0 commit comments