Skip to content

Commit c8fd535

Browse files
committed
Updating Memoize Unit Test
1 parent 028e098 commit c8fd535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cache/__tests__/Memoize.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const factorial = (n) => {
1616
return n * factorial(n - 1)
1717
}
1818

19-
describe('memoize', () => {
19+
describe('Memoize', () => {
2020
it('expects the fibonacci function to use the cache on the second call', () => {
2121
const memoFibonacci = memoize(fibonacci)
2222

@@ -32,6 +32,6 @@ describe('memoize', () => {
3232
expect(memoFactorial(5)).toEqual(factorial(5))
3333
expect(memoFactorial(5)).toEqual(120)
3434
expect(memoFactorial(10)).toEqual(factorial(10))
35-
expect(memoFactorial(10)).toEqual(3_628_800)
35+
expect(memoFactorial(10)).toEqual(3628800)
3636
})
3737
})

0 commit comments

Comments
 (0)