Test cleanup and fixes [o-p]

This commit is contained in:
Angelos Chalaris
2018-06-18 18:00:19 +03:00
parent 9f95330528
commit 072728dad2
35 changed files with 164 additions and 262 deletions

View File

@ -1,13 +1,10 @@
const expect = require('expect');
const over = require('./over.js');
test('over is a Function', () => {
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()
const minMax = over(Math.min, Math.max);
test('Applies given functions over multiple arguments', () => {
expect(minMax(1, 2, 3, 4, 5)).toEqual([1,5]);
});