Test cleanup and fixes [a-b]
This commit is contained in:
@ -5,6 +5,8 @@ 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');
|
||||
test('Discards arguments after the first one', () => {
|
||||
expect(['6', '8', '10'].map(unary(parseInt)), [6, 8, 10]).toEqual()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user