en.javascript.info/5-network/01-fetch-basics/01-fetch-users/_js.view/test.js
2019-06-18 10:02:03 +03:00

10 lines
281 B
JavaScript

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