mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
wip: code formatting nits continued
This commit is contained in:
10
test/filter.spec.js
Normal file
10
test/filter.spec.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { isEven } from './utils';
|
||||
import filter from '../src/filter';
|
||||
|
||||
describe('filter', () => {
|
||||
const array = [1, 2, 3];
|
||||
|
||||
it('should return elements `predicate` returns truthy for', () => {
|
||||
expect(filter(array, isEven)).toEqual([2]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user