Add a test case for the multiply function
This commit is contained in:
parent
6b0e0e55e3
commit
9f63f337e1
|
@ -39,6 +39,9 @@ describe('sum', () => {
|
|||
});
|
||||
|
||||
describe('multiply', () => {
|
||||
test.skip('multiplies an empty array', () => {
|
||||
expect(calculator.multiply([])).toBe(0);
|
||||
});
|
||||
test.skip('multiplies two numbers', () => {
|
||||
expect(calculator.multiply([2,4])).toBe(8);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue