Skip to content

Commit a2b0967

Browse files
committed
update tests
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent 63fb120 commit a2b0967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/generateUniqueID.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe("Snowflake with custom machine ID configuration", () => {
7070

7171
const ts = uid.getTimestampFromID(id);
7272

73-
expect(ts).to.be.greaterThanOrEqual(before).and.lessThanOrEqual(after);
73+
expect(ts).to.be.greaterThanOrEqual(before - 1).and.lessThanOrEqual(after + 1);
7474
});
7575

7676
it("should return current machine's id from the generated id", () => {

0 commit comments

Comments
 (0)