Passed test for "substract" in exercise 08

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

View File

@ -2,8 +2,8 @@ const add = function(a, b) {
return a + b;
};
const subtract = function() {
const subtract = function(a, b) {
return a - b;
};
const sum = function() {

View File

@ -15,7 +15,7 @@ describe('add', () => {
});
describe('subtract', () => {
test.skip('subtracts numbers', () => {
test('subtracts numbers', () => {
expect(calculator.subtract(10, 4)).toBe(6);
});
});