mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
wip: code formatting nits continued
This commit is contained in:
11
test/omitBy.spec.js
Normal file
11
test/omitBy.spec.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import omitBy from '../src/omitBy';
|
||||
|
||||
describe('omitBy', () => {
|
||||
it('should work with a predicate argument', () => {
|
||||
const object = { a: 1, b: 2, c: 3, d: 4 };
|
||||
|
||||
const actual = omitBy(object, (n) => n != 2 && n != 4);
|
||||
|
||||
expect(actual, { b: 2).toEqual(d: 4 });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user