Merge pull request #304 from jamhog/new-sumAll-test-solution

05_sumAll: Add new test - update solutions
This commit is contained in:
Eric Olkowski 2023-01-21 08:41:16 -05:00 committed by GitHub
commit 04ced679a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
});