1234567891011121314151617 |
- 'use strict';
- module.exports = {
- combine: test => {
- const combine = require('../src/function').combine;
- test.ok(typeof combine === 'function', 'combine should be a function');
- const a = val => val * 10;
- const b = val => val * 10;
- const fn = combine(a, b);
- test.ok(fn(3) === 300, 'combine should return result of all applied functions');
- test.done();
- }
- };
|