Skip to content

Commit 4342874

Browse files
Add broken test and uncovered code
1 parent 5fa836b commit 4342874

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

sum.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
function sum(a, b) {
22
return a + b;
33
}
4-
module.exports = sum;
4+
5+
function multiply(a, b) {
6+
return a * b;
7+
}
8+
9+
module.exports = sum;

sum.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ const sum = require('./sum');
22

33
test('adds 1 + 2 to equal 3', () => {
44
expect(sum(1, 2)).toBe(3);
5-
});
5+
});
6+
7+
test('adds 1 + 2 to equal 4', () => {
8+
expect(sum(1, 2)).toBe(4);
9+
});

0 commit comments

Comments
 (0)