Skip to content

Commit

Permalink
refactor(test): code cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Jul 3, 2024
1 parent 5711cae commit b53037c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/utils/Utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,8 @@ await describe('Utils test suite', async () => {
})

await it('Verify isArraySorted()', () => {
expect(
isArraySorted([], (a, b) => {
return a - b
})
).toBe(true)
expect(
isArraySorted([1], (a, b) => {
return a - b
})
).toBe(true)
expect(isArraySorted([], (a, b) => a - b)).toBe(true)
expect(isArraySorted([1], (a, b) => a - b)).toBe(true)
expect(isArraySorted<number>([1, 2, 3, 4, 5], (a, b) => a - b)).toBe(true)
expect(isArraySorted<number>([1, 2, 3, 5, 4], (a, b) => a - b)).toBe(false)
expect(isArraySorted<number>([2, 1, 3, 4, 5], (a, b) => a - b)).toBe(false)
Expand Down

0 comments on commit b53037c

Please sign in to comment.