Merge pull request #1917 from Logan-Schelly/master
Fixed typos on last Array Methods task.
This commit is contained in:
commit
3623cc2aed
2 changed files with 3 additions and 2 deletions
|
@ -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), {});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ let usersById = groupById(users);
|
|||
// after the call we should have:
|
||||
|
||||
usersById = {
|
||||
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},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue