From 37e31facfbf633613b566e971816892e686effaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 28 Aug 2023 17:58:57 +0200 Subject: [PATCH] test: refine UTs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.test.js b/tests/utils.test.js index fdb67478..93e9e5c2 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -57,6 +57,7 @@ describe('Utils test suite', () => { it('Verify availableParallelism() behavior', () => { const parallelism = availableParallelism() expect(typeof parallelism === 'number').toBe(true) + expect(Number.isSafeInteger(parallelism)).toBe(true) let expectedParallelism = 1 try { expectedParallelism = os.availableParallelism() @@ -64,7 +65,6 @@ describe('Utils test suite', () => { expectedParallelism = os.cpus().length } expect(parallelism).toBe(expectedParallelism) - expect(Number.isSafeInteger(parallelism)).toBe(true) }) it('Verify getWorkerType() behavior', () => { -- 2.34.1