diff --git a/.eslintignore b/.eslintignore index 480c242..3a3c15d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,3 +6,5 @@ dist LICENSE package.json README.md + +dist \ No newline at end of file diff --git a/tests/specs/rate/rate.js b/tests/specs/rate/rate.js index c4cdc26..c89e567 100644 --- a/tests/specs/rate/rate.js +++ b/tests/specs/rate/rate.js @@ -45,7 +45,7 @@ test('Testing "rate" with custom range', (assert) => { }, ]; - data.map((sample) => { + data.forEach((sample) => { const { input, expect, @@ -53,7 +53,6 @@ test('Testing "rate" with custom range', (assert) => { const actual = AverageRating.rate(input); const params = input.join(', '); assert.deepEqual(actual, expect, `.rate([${params}]) should be ${expect}`); - return actual; }); assert.end();