Skip to content

Commit 70720c7

Browse files
update
1 parent f479e91 commit 70720c7

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/splitInteger.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ function splitInteger(value, numberOfParts) {
2020
return parts;
2121
}
2222

23-
console.log(splitInteger());
24-
2523
module.exports = splitInteger;

src/splitInteger.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ const splitInteger = require('./splitInteger');
44

55
test(`should split a number into equal parts
66
if a value is divisible by a numberOfParts`, () => {
7-
87
const result = splitInteger(8, 2);
98

109
expect(result).toEqual([4, 4]);
1110
});
1211

1312
test(`should return a part equals to a value
1413
when splitting into 1 part`, () => {
15-
1614
const result = splitInteger(8, 1);
1715

1816
expect(result).toEqual([8]);

0 commit comments

Comments
 (0)