From 0c5480d00e366b387b680509cbf8ba068b0b151a Mon Sep 17 00:00:00 2001 From: Zohidjon Ma'rufov <141664864+zohidjondev@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:02:56 +0500 Subject: [PATCH] sumAll: Unify tests between solution and non-solution spec file (#488) --- 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'); });