Skip to content

Commit

Permalink
Updated Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon committed Jan 31, 2022
1 parent 6259248 commit 0ab5174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/snowflake.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('test deconstruction of timestamp.', () => {
let snowflake = new SnowflakeID(generatedSnowflake);

// expects the timestamp to be equal or close to the original.
expect(snowflake.timestamp).toBeCloseTo(timestamp);
expect(snowflake.timestamp).toBeGreaterThanOrEqual(timestamp);
});

test('test deconstruction of processId.', () => {
Expand Down

0 comments on commit 0ab5174

Please sign in to comment.