fix(tests): expectations of some async test where not working (#989)
This commit is contained in:
committed by
Angelos Chalaris
parent
c89fd04ced
commit
f4df77d62f
@ -8,10 +8,5 @@ let p1 = Promise.resolve(1);
|
||||
let p2 = Promise.resolve(2);
|
||||
let p3 = new Promise(resolve => setTimeout(resolve, 2000, 3));
|
||||
test('Works with multiple promises', () => {
|
||||
Pall(p1, p2, p3).then(
|
||||
function(val) {
|
||||
expect(val).toBe([1, 2, 3]);
|
||||
},
|
||||
function(reason) {}
|
||||
);
|
||||
return expect(Pall(p1, p2, p3)).resolves.toEqual([1, 2, 3]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user