From 0f57a2afcd69c9333a55ba45868e0a0c6244529b Mon Sep 17 00:00:00 2001 From: James Hogan Date: Sun, 20 Nov 2022 12:37:51 +1100 Subject: [PATCH] Add sumAll test --- sumAll/sumAll.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sumAll/sumAll.spec.js b/sumAll/sumAll.spec.js index 1a9fb7c..fd4a432 100644 --- a/sumAll/sumAll.spec.js +++ b/sumAll/sumAll.spec.js @@ -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'); });