Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
18
test/delay/delay.test.js
Normal file
18
test/delay/delay.test.js
Normal file
@ -0,0 +1,18 @@
|
||||
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'
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user