Skip to content

Commit 8471a16

Browse files
committed
fix error in the spec for absoluteValue
1 parent 0a7897b commit 8471a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/absoluteValueSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const { absoluteValue } = require('../lib/absoluteValue');
33
describe('absoluteValue', () => {
44
it('should return the absolute value of all parameters, given that all parameters evaluate to numbers', () => {
55
let result = absoluteValue(1.6,-2.3325,-9007199254740990,596960,3938475,+"-395757");
6-
expect(result).toBe(1.6, 2.3325, 9007199254740990, 596960, 3938475,395757);
6+
expect(result).toBe([1.6, 2.3325, 9007199254740990, 596960, 3938475,395757]);
77

88
result = absoluteValue(1);
9-
expect(result).toBe(1);
9+
expect(result).toBe([1]);
1010
});
1111

1212
it('should throw an error when no parameters are provided', () => {

0 commit comments

Comments
 (0)