Skip to content

Commit af64a76

Browse files
committed
fix formating issues
1 parent 2a32527 commit af64a76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/absoluteValue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ const handleErrors = (params) => {
1919
*/
2020
exports.absoluteValue = (...params) => {
2121
handleErrors(params);
22-
return params.map((num) => Math.abs(num));
23-
}
22+
return params.map(num => Math.abs(num));
23+
};

spec/absoluteValueSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { absoluteValue } = require('../lib/absoluteValue');
22

33
describe('absoluteValue', () => {
44
it('should return the absolute value of all parameters, given that all parameters evaluate to numbers', () => {
5-
let result = absoluteValue(1.6,-2.3325,-9007199254740990,596960,3938475,+"-395757");
5+
const result = absoluteValue(1.6,-2.3325, -9007199254740990, 596960, 3938475, +'-395757');
66
expect(result).toEqual([1.6, 2.3325, 9007199254740990, 596960, 3938475, 395757]);
77
});
88

0 commit comments

Comments
 (0)