We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53aa0b1 commit b7ef53cCopy full SHA for b7ef53c
Recursive/test/Factorial.test.js
@@ -14,9 +14,6 @@ describe('Factorial', () => {
14
expect(() => factorial(null)).toThrow('Not a Number')
15
expect(() => factorial(undefined)).toThrow('Not a Number')
16
expect(() => factorial(3.142)).toThrow('Not a Whole Number')
17
- })
18
-
19
- it('should return undefined for values less than 1', () => {
20
- expect(factorial(-1)).toBe(undefined)
+ expect(() => factorial(-1)).toThrow('Not a Positive Number')
21
})
22
0 commit comments