Tests for omit, omitBy

This commit is contained in:
Angelos Chalaris
2018-02-04 20:53:25 +02:00
parent 2e37b6af8c
commit 48c112d92b
3 changed files with 9 additions and 5 deletions

View File

@ -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();
});
});