Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(factorial): create exercise #441

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat/ remove unnecesary describe
  • Loading branch information
nik-rev committed Mar 23, 2024
commit 3bc04827e37b09bb41a722a6617bb0b4d43c0f60
8 changes: 7 additions & 1 deletion 13_factorial/factorial.spec.js
Original file line number Diff line number Diff line change
@@ -25,7 +25,13 @@ describe('factorial', () => {
test.skip('doesn\'t accept floats', () => {
expect(factorial(5.4)).toBe(undefined);
});
test.skip('doesn\'t accept strings', () => {
test.skip('doesn\'t accept a number as a string', () => {
expect(factorial('5')).toBe(undefined);
});
test.skip('doesn\'t accept strings', () => {
expect(factorial('foo')).toBe(undefined);
});
test.skip('doesn\'t accept arrays', () => {
expect(factorial([5])).toBe(undefined);
});
});
8 changes: 7 additions & 1 deletion 13_factorial/solution/factorial-solution.spec.js
Original file line number Diff line number Diff line change
@@ -25,7 +25,13 @@ describe('factorial', () => {
test.skip('doesn\'t accept floats', () => {
expect(factorial(5.4)).toBe(undefined);
});
test.skip('doesn\'t accept strings', () => {
test.skip('doesn\'t accept a number as a string', () => {
expect(factorial('5')).toBe(undefined);
});
test.skip('doesn\'t accept strings', () => {
expect(factorial('foo')).toBe(undefined);
});
test.skip('doesn\'t accept arrays', () => {
expect(factorial([5])).toBe(undefined);
});
});