sumAll: Unify tests between solution and non-solution spec file (#488)

This commit is contained in:
Zohidjon Ma'rufov
2024-07-17 18:02:56 +05:00
committed by GitHub
parent 3c636bebee
commit 0c5480d00e
+3
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');
});