fix(tests): expectations of some async test where not working (#989)
This commit is contained in:
committed by
Angelos Chalaris
parent
c89fd04ced
commit
f4df77d62f
@ -3,10 +3,11 @@ const {delay} = require('./_30s.js');
|
||||
test('delay is a Function', () => {
|
||||
expect(delay).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Works as expecting, passing arguments properly', () => {
|
||||
test('Works as expecting, passing arguments properly', done => {
|
||||
delay(
|
||||
function(text) {
|
||||
expect(text).toBe('test');
|
||||
done();
|
||||
},
|
||||
1000,
|
||||
'test'
|
||||
|
||||
Reference in New Issue
Block a user