Skip to content

Commit 86479f2

Browse files
author
sunjieming
committed
Fix test
1 parent 2a969b9 commit 86479f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/closure.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('closure', () => {
6666
it('The cached function should return the correct result', () => {
6767
const foo = x => (x * x);
6868
const cachedFunction = closureMethods.cacheFunction(foo);
69-
expect(cachedFunction(5, 5)).toBe(25);
69+
expect(cachedFunction(5)).toBe(25);
7070
});
7171
it('should cache function results and not rerun the original callback if the same arguments are presented', () => {
7272
const foo = jest.fn();

0 commit comments

Comments
 (0)