Add sumAll test

This commit is contained in:
James Hogan 2022-11-20 12:37:51 +11:00
parent db998d7279
commit 0f57a2afcd
1 changed files with 3 additions and 0 deletions

View File

@ -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');
}); });