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