Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/unary/unary.test.js
Normal file
10
test/unary/unary.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const unary = require('./unary.js');
|
||||
|
||||
|
||||
test('unary is a Function', () => {
|
||||
expect(unary).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(['6', '8', '10'].map(unary(parseInt)), [6, 8, 10], 'Discards arguments after the first one');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user