Test cleanup and fixes [c-d]
This commit is contained in:
@ -6,5 +6,7 @@ const spreadOver = require('./spreadOver.js');
|
||||
expect(spreadOver).toBeInstanceOf(Function);
|
||||
});
|
||||
const arrayMax = spreadOver(Math.max);
|
||||
t.equal(arrayMax([1, 2, 3]), 3, "Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function.");
|
||||
test('Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function.', () => {
|
||||
expect(arrayMax([1, 2, 3])).toBe(3)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user