Tests for unionBy, unionWith

This commit is contained in:
Angelos Chalaris
2018-02-03 12:01:14 +02:00
parent 980e3e2464
commit 52cfecdc5e
3 changed files with 9 additions and 5 deletions

View File

@ -5,9 +5,10 @@ test('Testing unionBy', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof unionBy === 'function', 'unionBy is a Function');
t.deepEqual(unionBy([2.1], [1.2, 2.3], Math.floor), [2.1, 1.2], 'Produces the appropriate results');
//t.deepEqual(unionBy(args..), 'Expected');
//t.equal(unionBy(args..), 'Expected');
//t.false(unionBy(args..), 'Expected');
//t.throws(unionBy(args..), 'Expected');
t.end();
});
});