Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-07 15:16:14 +02:00
parent 9e6c4656d0
commit fc06f82a66
2 changed files with 9 additions and 0 deletions

View File

@ -4,3 +4,9 @@ const {mostPerformant} = require('./_30s.js');
test('mostPerformant is a Function', () => {
expect(mostPerformant).toBeInstanceOf(Function);
});
test('mostPerformant returns a number', () => {
expect(typeof mostPerformant([Math.max, Math.min])).toBe('number');
});
test('mostPerformant returns a number', () => {
expect(typeof mostPerformant([Math.max, Math.min], 10)).toBe('number');
});