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

15 lines
313 B
JavaScript

const expect = require('expect');
const times = require('./times.js');
test('times is a Function', () => {
expect(times).toBeInstanceOf(Function);
});
var output = '';
times(5, i => (output += i));
test('Runs a function the specified amount of times', () => {
expect(output, '01234').toBe()
});