Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/compat/array/pullAll.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ describe('pullAll', () => {
expect(actual).toEqual([]);
});

it('should use empty array as default when no values provided', () => {
const array = [1, 2, 3];
const result = pullAll(array);

expect(result).toBe(array);
expect(array).toEqual([1, 2, 3]);
});

// NOTE: TypeScript doesn't support matching conditional types
// it('should match the type of lodash', () => {
// expectTypeOf(pullAll).toEqualTypeOf<typeof pullAllLodash>();
Expand Down