Test cleanup and fixes [a-b]
This commit is contained in:
@ -8,6 +8,8 @@ const pipeFunctions = require('./pipeFunctions.js');
|
||||
const add5 = x => x + 5;
|
||||
const multiply = (x, y) => x * y;
|
||||
const multiplyAndAdd5 = pipeFunctions(multiply, add5);
|
||||
t.equal(multiplyAndAdd5(5, 2), 15, 'Performs left-to-right function composition');
|
||||
test('Performs left-to-right function composition', () => {
|
||||
expect(multiplyAndAdd5(5, 2), 15).toBe()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user