Passed tests for "add" in exercise 08
This commit is contained in:
parent
4c89a8ee8c
commit
6aa84ac5f5
|
@ -1,5 +1,5 @@
|
||||||
const add = function() {
|
const add = function(a, b) {
|
||||||
|
return a + b;
|
||||||
};
|
};
|
||||||
|
|
||||||
const subtract = function() {
|
const subtract = function() {
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue