Tests for rearg, pickBy

This commit is contained in:
Angelos Chalaris
2018-02-04 16:57:07 +02:00
parent 01305d0716
commit 2053693237
3 changed files with 15 additions and 5 deletions

View File

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