15 lines
635 B
JavaScript
15 lines
635 B
JavaScript
const test = require('tape');
|
|
const omitBy = require('./omitBy.js');
|
|
|
|
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();
|
|
});
|