Fixed some issues in test files

This commit is contained in:
Angelos Chalaris
2018-06-18 19:07:48 +03:00
parent 1439ba9504
commit 977adb1198
31 changed files with 1390 additions and 2080 deletions

View File

@ -2,5 +2,5 @@ const groupBy = (arr, fn) =>
arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val, i) => {
acc[val] = (acc[val] || []).concat(arr[i]);
return acc;
}, {
}, {});
module.exports = groupBy;