We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 609ba18 + a8acec8 commit fd05df0Copy full SHA for fd05df0
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