Test cleanup and fixes [u-v]
This commit is contained in:
@ -1,12 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const unary = require('./unary.js');
|
||||
|
||||
|
||||
test('unary is a Function', () => {
|
||||
test('unary is a Function', () => {
|
||||
expect(unary).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Discards arguments after the first one', () => {
|
||||
expect(['6', '8', '10'].map(unary(parseInt)), [6, 8, 10]).toEqual()
|
||||
test('Discards arguments after the first one', () => {
|
||||
expect(['6', '8', '10'].map(unary(parseInt))).toEqual([6, 8, 10]);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user