From: Jérôme Benoit Date: Thu, 27 Jul 2023 11:56:14 +0000 (+0200) Subject: test: improve isArraySorted() test X-Git-Tag: v1.2.20~115 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=479200ffe080f9c6062ec4dc89db6b78f763db80;p=e-mobility-charging-stations-simulator.git test: improve isArraySorted() test Signed-off-by: Jérôme Benoit --- diff --git a/test/utils/Utils.test.ts b/test/utils/Utils.test.ts index b75197c2..96fd18b4 100644 --- a/test/utils/Utils.test.ts +++ b/test/utils/Utils.test.ts @@ -413,5 +413,6 @@ describe('Utils test suite', () => { ).toBe(true); expect(isArraySorted([1, 2, 3, 4, 5], (a, b) => a - b)).toBe(true); expect(isArraySorted([1, 2, 3, 5, 4], (a, b) => a - b)).toBe(false); + expect(isArraySorted([2, 1, 3, 4, 5], (a, b) => a - b)).toBe(false); }); });