We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa2e65 commit a8acec8Copy full SHA for a8acec8
1-js/05-data-types/05-array-methods/12-reduce-object/_js.view/test.js
@@ -8,13 +8,14 @@ describe("groupById", function() {
8
];
9
10
assert.deepEqual(groupById(users), {
11
- john: {id: 'john', name: "John Smith", age: 20}
+ john: {id: 'john', name: "John Smith", age: 20},
12
ann: {id: 'ann', name: "Ann Smith", age: 24},
13
pete: {id: 'pete', name: "Pete Peterson", age: 31},
14
});
15
16
17
it("works with an empty array", function() {
18
- assert.deepEqual(groupById(users), {});
+ let users_empty = [];
19
+ assert.deepEqual(groupById(users_empty), {});
20
21
0 commit comments