Skip to content

Commit

Permalink
Update src/array/without.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 authored Jul 3, 2024
1 parent 85a0ed6 commit 66fd67a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/array/without.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ describe('without', () => {
expect(without([1, '1', 2, '2'], 1, '2')).toEqual(['1', 2]);
});

it('should return an empty array when input is not a valid array', () => {
expect(without(null as any, 1, 2)).toEqual([]);
expect(without(undefined as any, 1, 2)).toEqual([]);
expect(without({ length: 'invalid' } as any, 1, 2)).toEqual([]);
});

it('should handle NaN values correctly', () => {
expect(without([NaN, 1, 2, NaN, 3], NaN)).toEqual([1, 2, 3]);
});
Expand Down

0 comments on commit 66fd67a

Please sign in to comment.