Add sumAll test
This commit is contained in:
parent
0747078d97
commit
8f678ad520
|
@ -13,6 +13,9 @@ describe('sumAll', () => {
|
||||||
test.skip('returns ERROR with negative numbers', () => {
|
test.skip('returns ERROR with negative numbers', () => {
|
||||||
expect(sumAll(-10, 4)).toEqual('ERROR');
|
expect(sumAll(-10, 4)).toEqual('ERROR');
|
||||||
});
|
});
|
||||||
|
test.skip('returns ERROR with non-integer parameters', () => {
|
||||||
|
expect(sumAll(2.5, 4)).toEqual('ERROR');
|
||||||
|
});
|
||||||
test.skip('returns ERROR with non-number parameters', () => {
|
test.skip('returns ERROR with non-number parameters', () => {
|
||||||
expect(sumAll(10, "90")).toEqual('ERROR');
|
expect(sumAll(10, "90")).toEqual('ERROR');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue