Add sumAll test

This commit is contained in:
James Hogan 2022-03-30 11:29:00 +11:00
parent 0747078d97
commit 8f678ad520
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ describe('sumAll', () => {
test.skip('returns ERROR with negative numbers', () => {
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', () => {
expect(sumAll(10, "90")).toEqual('ERROR');
});