From 09aadfd11c3aa3c4479eb63390f1b8ad42dba133 Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Thu, 8 Feb 2024 10:04:44 +0100 Subject: [PATCH] migrate NumberUtilsTest to TypeScript --- tests/unit/{NumberUtilsTest.js => NumberUtilsTest.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename tests/unit/{NumberUtilsTest.js => NumberUtilsTest.ts} (97%) 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); });