Skip to content

Commit 3bc0482

Browse files
committed
feat/ remove unnecesary describe
1 parent eaabc5b commit 3bc0482

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

13_factorial/factorial.spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ describe('factorial', () => {
2525
test.skip('doesn\'t accept floats', () => {
2626
expect(factorial(5.4)).toBe(undefined);
2727
});
28-
test.skip('doesn\'t accept strings', () => {
28+
test.skip('doesn\'t accept a number as a string', () => {
2929
expect(factorial('5')).toBe(undefined);
3030
});
31+
test.skip('doesn\'t accept strings', () => {
32+
expect(factorial('foo')).toBe(undefined);
33+
});
34+
test.skip('doesn\'t accept arrays', () => {
35+
expect(factorial([5])).toBe(undefined);
36+
});
3137
});

13_factorial/solution/factorial-solution.spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ describe('factorial', () => {
2525
test.skip('doesn\'t accept floats', () => {
2626
expect(factorial(5.4)).toBe(undefined);
2727
});
28-
test.skip('doesn\'t accept strings', () => {
28+
test.skip('doesn\'t accept a number as a string', () => {
2929
expect(factorial('5')).toBe(undefined);
3030
});
31+
test.skip('doesn\'t accept strings', () => {
32+
expect(factorial('foo')).toBe(undefined);
33+
});
34+
test.skip('doesn\'t accept arrays', () => {
35+
expect(factorial([5])).toBe(undefined);
36+
});
3137
});

0 commit comments

Comments
 (0)