Fixed minor typos

The empty users array was undeclared in the second test, and the object in the first test was missing a comma in its declaration.
This commit is contained in:
Logan-Schelly 2020-05-21 14:12:51 -06:00 committed by GitHub
parent 77cb06d6ac
commit 333cb9defc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,13 +8,14 @@ describe("groupById", function() {
];
assert.deepEqual(groupById(users), {
john: {id: 'john', name: "John Smith", age: 20}
john: {id: 'john', name: "John Smith", age: 20},
ann: {id: 'ann', name: "Ann Smith", age: 24},
pete: {id: 'pete', name: "Pete Peterson", age: 31},
});
});
it("works with an empty array", function() {
users = [];
assert.deepEqual(groupById(users), {});
});
});