Add test for empty strings
This commit is contained in:
parent
10044560cd
commit
208e02e31c
|
@ -19,4 +19,7 @@ describe('sumAll', () => {
|
||||||
test.skip('returns ERROR with non-number parameters', () => {
|
test.skip('returns ERROR with non-number parameters', () => {
|
||||||
expect(sumAll(10, [90, 1])).toEqual('ERROR');
|
expect(sumAll(10, [90, 1])).toEqual('ERROR');
|
||||||
});
|
});
|
||||||
|
test.skip('returns ERROR with empty strings', () => {
|
||||||
|
expect(sumAll('', 2)).toEqual('ERROR');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue