Merge pull request #477 from Eji4h/master

Refactor Maths/Factorial for more minimal side effects.
This commit is contained in:
marsonya
2021-01-22 15:44:51 +05:30
committed by GitHub
2 changed files with 9 additions and 26 deletions

View File

@@ -1,10 +1,6 @@
import { calcFactorial } from '../Factorial'
describe('calcFactorial', () => {
it('is a function', () => {
expect(typeof calcFactorial).toEqual('function')
})
it('should return a statement for value "0"', () => {
expect(calcFactorial(0)).toBe('The factorial of 0 is 1.')
})