Passed test for "substract" in exercise 08
This commit is contained in:
parent
6aa84ac5f5
commit
f4e1b0d95a
|
@ -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() {
|
||||
|
|
|
@ -15,7 +15,7 @@ describe('add', () => {
|
|||
});
|
||||
|
||||
describe('subtract', () => {
|
||||
test.skip('subtracts numbers', () => {
|
||||
test('subtracts numbers', () => {
|
||||
expect(calculator.subtract(10, 4)).toBe(6);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue