From 625449e060dbabfb63148692f080ca035d92ec93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 3 Sep 2023 22:39:10 +0200 Subject: [PATCH] test: improve min/max tests 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, 2 insertions(+) diff --git a/tests/utils.test.js b/tests/utils.test.js index 2101891a..426985a2 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -315,12 +315,14 @@ describe('Utils test suite', () => { }) it('Verify min() behavior', () => { + expect(min()).toBe(Infinity) expect(min(1, 2)).toBe(1) expect(min(2, 1)).toBe(1) expect(min(1, 1)).toBe(1) }) it('Verify max() behavior', () => { + expect(max()).toBe(-Infinity) expect(max(1, 2)).toBe(2) expect(max(2, 1)).toBe(2) expect(max(1, 1)).toBe(1) -- 2.34.1