Files
30-seconds-of-code/test/delay/delay.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

19 lines
327 B
JavaScript

const expect = require('expect');
const delay = require('./delay.js');
test('delay is a Function', () => {
expect(delay).toBeInstanceOf(Function);
});
delay(
function(text) {
test('Works as expecting, passing arguments properly', () => {
expect(text, 'test').toBe()
});
},
1000,
'test'
);