Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/unionBy/unionBy.test.js
Normal file
10
test/unionBy/unionBy.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const unionBy = require('./unionBy.js');
|
||||
|
||||
|
||||
test('unionBy is a Function', () => {
|
||||
expect(unionBy).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(unionBy([2.1], [1.2, 2.3], Math.floor), [2.1, 1.2], 'Produces the appropriate results');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user