Passed tests for "add" in exercise 08

This commit is contained in:
NetMan 2024-01-11 09:56:09 +01:00
parent 4c89a8ee8c
commit 6aa84ac5f5
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
const add = function() { const add = function(a, b) {
return a + b;
}; };
const subtract = function() { const subtract = function() {

View File

@ -5,11 +5,11 @@ describe('add', () => {
expect(calculator.add(0, 0)).toBe(0); expect(calculator.add(0, 0)).toBe(0);
}); });
test.skip('adds 2 and 2', () => { test('adds 2 and 2', () => {
expect(calculator.add(2, 2)).toBe(4); expect(calculator.add(2, 2)).toBe(4);
}); });
test.skip('adds positive numbers', () => { test('adds positive numbers', () => {
expect(calculator.add(2, 6)).toBe(8); expect(calculator.add(2, 6)).toBe(8);
}); });
}); });