Skip to content

Commit

Permalink
feat(factorial): remove .skip from all tests under solution
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco committed Aug 20, 2024
1 parent 8b2ed42 commit 10d559d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions 13_factorial/solution/factorial-solution.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 10d559d

Please sign in to comment.