14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
const expect = require('expect');
|
|
const over = require('./over.js');
|
|
|
|
|
|
test('over is a Function', () => {
|
|
expect(over).toBeInstanceOf(Function);
|
|
});
|
|
const minMax = over(Math.min, Math.max);
|
|
test('Applies given functions over multiple arguments', () => {
|
|
expect(minMax(1, 2, 3, 4, 5), [1,5]).toEqual()
|
|
});
|
|
|
|
|