Skip to content

Commit 78d76d2

Browse files
Update packages/utils/src/lib/process-id.unit.test.ts
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>
1 parent 7193a57 commit 78d76d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/utils/src/lib/process-id.unit.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,9 @@ describe('getUniqueInstanceId', () => {
171171
getUniqueInstanceId(counterObj),
172172
];
173173

174-
const counters = results.map(r =>
175-
Number.parseInt(r.split('.').at(-1)!, 10),
176-
);
177-
expect(counters).toEqual([1, 2, 3]);
174+
expect(results[0]).toEndWith('.1');
175+
expect(results[1]).toEndWith('.2');
176+
expect(results[2]).toEndWith('.3');
178177
});
179178

180179
it('should generate different IDs for different calls', () => {

0 commit comments

Comments
 (0)