Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-31 20:27:06 +02:00
parent b747a82395
commit 53151c01e5
5 changed files with 28 additions and 0 deletions

View File

@ -4,3 +4,6 @@ const {timeTaken} = require('./_30s.js');
test('timeTaken is a Function', () => {
expect(timeTaken).toBeInstanceOf(Function);
});
test('timeTaken is a Function', () => {
expect(timeTaken(() => 10)).toBe(10);
});