merge: Add test case (#851)

* Add test case

* minor fix

* delete files

* rename file
This commit is contained in:
YATIN KATHURIA
2021-11-27 12:58:18 +05:30
committed by GitHub
parent c33b19a731
commit 51415f8a12
3 changed files with 29 additions and 11 deletions

View File

@ -0,0 +1,11 @@
import { factorial } from '../Factorial'
describe('Factorial', () => {
it('should return factorial 1 for value "0"', () => {
expect(factorial(0)).toBe(1)
})
it('should return factorial 120 for value "5"', () => {
expect(factorial(5)).toBe(120)
})
})