Codacy style changes for test files

This commit is contained in:
Angelos Chalaris
2018-08-02 13:49:33 +03:00
parent 067447bdfa
commit f0db074807
338 changed files with 2283 additions and 2619 deletions

View File

@ -1,5 +1,4 @@
const averageBy = (arr, fn) =>
arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0) /
arr.length;
module.exports = averageBy;
module.exports = averageBy;