mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
12 lines
313 B
TypeScript
12 lines
313 B
TypeScript
import assert from 'node:assert';
|
|
import { isEven } from './utils';
|
|
import reject from '../src/reject';
|
|
|
|
describe('reject', () => {
|
|
const array = [1, 2, 3];
|
|
|
|
it('should return elements the `predicate` returns falsey for', () => {
|
|
assert.deepStrictEqual(reject(array, isEven), [1, 3]);
|
|
});
|
|
});
|