Test cleanup and fixes [c-d]

This commit is contained in:
Angelos Chalaris
2018-06-18 16:34:04 +03:00
parent 026c65a5e6
commit eb3cb2f928
136 changed files with 805 additions and 484 deletions

View File

@ -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)
});