mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
wip: migrate to bun
This commit is contained in:
11
test/filter.spec.ts
Normal file
11
test/filter.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import assert from 'node:assert';
|
||||
import { isEven } from './utils';
|
||||
import filter from '../src/filter';
|
||||
|
||||
describe('filter', () => {
|
||||
const array = [1, 2, 3];
|
||||
|
||||
it('should return elements `predicate` returns truthy for', () => {
|
||||
assert.deepStrictEqual(filter(array, isEven), [2]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user