fix(tests): expectations of some async test where not working (#989)

This commit is contained in:
Christian C. Salvadó
2019-06-25 23:35:24 -06:00
committed by Angelos Chalaris
parent c89fd04ced
commit f4df77d62f
7 changed files with 20 additions and 19 deletions

View File

@ -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]);
});