Skip to content

Commit

Permalink
fix typo in tests that breaks node-v12 and v13
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Apr 2, 2020
1 parent 7d98a0c commit cb6f4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-qibl.js
Expand Up @@ -1448,7 +1448,7 @@ module.exports = {

'groupBy': {
'groups by keys from the provided function': function(t) {
t.deepEqual(qibl.groupBy([], function(){ return 1 }), []);
t.deepEqual(qibl.groupBy([], function(){ return 1 }), {});
t.deepEqual(qibl.groupBy([1,2,3], function(e) { return e }), { 1: [1], 2: [2], 3: [3] });
t.deepEqual(qibl.groupBy([1,2,3], function(e) { return 2*e }), { 2: [1], 4: [2], 6: [3] });
t.deepEqual(qibl.groupBy([1,2,3], function(e) { return e & 1 }), { 1: [1, 3], 0: [2] });
Expand Down

0 comments on commit cb6f4b2

Please sign in to comment.