Updated sumAll.spec.js

This commit is contained in:
Mahir Mahdi 2022-08-10 21:40:24 +06:00 committed by GitHub
parent 8766dc629b
commit 5ce3d6acf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ describe('sumAll', () => {
test.skip('works with larger number first', () => {
expect(sumAll(123, 1)).toEqual(7626);
});
test.skip('returns ERROR with negative numbers', () => {
expect(sumAll(-10, 4)).toEqual('ERROR');
test.skip('works with negative numbers', () => {
expect(sumAll(-10, 4)).toEqual(-45);
});
test.skip('returns ERROR with non-number parameters', () => {
expect(sumAll(10, "90")).toEqual('ERROR');