Files
30-seconds-of-code/test/over/over.test.js
Angelos Chalaris 4f7da1be9b Test migration to jest by hand
Apparently using regular expressions is way easier.
2018-06-18 15:15:56 +03:00

12 lines
296 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);
t.deepEqual(minMax(1, 2, 3, 4, 5), [1,5], 'Applies given functions over multiple arguments');