Tests for omit, omitBy
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing omitBy', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof omitBy === 'function', 'omitBy is a Function');
|
||||
t.deepEqual(omitBy({ a: 1, b: '2', c: 3 }, x => typeof x === 'number'), { b: '2' }, 'Creates an object composed of the properties the given function returns falsey for');
|
||||
//t.deepEqual(omitBy(args..), 'Expected');
|
||||
//t.equal(omitBy(args..), 'Expected');
|
||||
//t.false(omitBy(args..), 'Expected');
|
||||
//t.throws(omitBy(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user