Promise.allSettled

This commit is contained in:
Ilya Kantor 2019-06-18 10:02:03 +03:00
parent 027933531e
commit d7f90176c7
16 changed files with 191 additions and 253 deletions

View file

@ -0,0 +1,10 @@
describe("getUsers", function() {
it("gets users from GitHub", async function() {
let users = getUsers(['iliakan', 'remy', 'no.such.users']);
assert.equal(users[0].login, 'iliakan');
assert.equal(users[1].login, 'remy');
assert.equal(users[2], null);
});
});