From 8f678ad52019dd1d1e440182da276a81bc6a81cb Mon Sep 17 00:00:00 2001 From: James Hogan Date: Wed, 30 Mar 2022 11:29:00 +1100 Subject: [PATCH] Add sumAll test --- 05_sumAll/sumAll.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/05_sumAll/sumAll.spec.js b/05_sumAll/sumAll.spec.js index 1a9fb7c..fd4a432 100644 --- a/05_sumAll/sumAll.spec.js +++ b/05_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'); });