Updated sumAll.spec.js
This commit is contained in:
parent
8766dc629b
commit
5ce3d6acf7
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue