We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a969b9 commit 86479f2Copy full SHA for 86479f2
tests/closure.test.js
@@ -66,7 +66,7 @@ describe('closure', () => {
66
it('The cached function should return the correct result', () => {
67
const foo = x => (x * x);
68
const cachedFunction = closureMethods.cacheFunction(foo);
69
- expect(cachedFunction(5, 5)).toBe(25);
+ expect(cachedFunction(5)).toBe(25);
70
});
71
it('should cache function results and not rerun the original callback if the same arguments are presented', () => {
72
const foo = jest.fn();
0 commit comments