diff --git a/tests/unit/NumberUtilsTest.js b/tests/unit/NumberUtilsTest.ts similarity index 97% rename from tests/unit/NumberUtilsTest.js rename to tests/unit/NumberUtilsTest.ts index 3fc547476be1..6ec6919569e0 100644 --- a/tests/unit/NumberUtilsTest.js +++ b/tests/unit/NumberUtilsTest.ts @@ -5,7 +5,7 @@ describe('libs/NumberUtils', () => { const id = NumberUtils.rand64(); expect(typeof id).toBe('string'); // eslint-disable-next-line no-undef - expect(BigInt(id)).toBeLessThanOrEqual(BigInt(9223372036854775807)); + expect(BigInt(id)).toBeLessThanOrEqual(BigInt(9223372036854775807n)); // eslint-disable-next-line no-undef expect(BigInt(id)).toBeGreaterThanOrEqual(0); });