From 10d559dc5dfad55399fedd36050bc68053ee923d Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Tue, 20 Aug 2024 23:28:08 +0100 Subject: [PATCH] feat(factorial): remove .skip from all tests under solution --- .../solution/factorial-solution.spec.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/13_factorial/solution/factorial-solution.spec.js b/13_factorial/solution/factorial-solution.spec.js index 35c18e8b49c..7532f54c990 100644 --- a/13_factorial/solution/factorial-solution.spec.js +++ b/13_factorial/solution/factorial-solution.spec.js @@ -4,34 +4,34 @@ describe('factorial', () => { test('4th factorial number is 24', () => { expect(factorial(4)).toBe(24); }); - test.skip('6th factorial number is 720', () => { + test('6th factorial number is 720', () => { expect(factorial(6)).toBe(720); }); - test.skip('10th factorial number is 3628800', () => { + test('10th factorial number is 3628800', () => { expect(factorial(10)).toBe(3628800); }); - test.skip('15th factorial number is 1307674368000', () => { + test('15th factorial number is 1307674368000', () => { expect(factorial(15)).toBe(1307674368000); }); - test.skip('25th factorial number is 1.5511210043330986e+25', () => { + test('25th factorial number is 1.5511210043330986e+25', () => { expect(factorial(25)).toBe(1.5511210043330986e+25); }); - test.skip('0th factorial number is 1', () => { + test('0th factorial number is 1', () => { expect(factorial(0)).toBe(1); }); - test.skip('doesn\'t accept negatives', () => { + test('doesn\'t accept negatives', () => { expect(factorial(-25)).toBe(undefined); }); - test.skip('doesn\'t accept floats', () => { + test('doesn\'t accept floats', () => { expect(factorial(5.4)).toBe(undefined); }); - test.skip('doesn\'t accept a number as a string', () => { + test('doesn\'t accept a number as a string', () => { expect(factorial('5')).toBe(undefined); }); - test.skip('doesn\'t accept strings', () => { + test('doesn\'t accept strings', () => { expect(factorial('foo')).toBe(undefined); }); - test.skip('doesn\'t accept arrays', () => { + test('doesn\'t accept arrays', () => { expect(factorial([5])).toBe(undefined); }); });