Skip to content

Commit b7083c1

Browse files
author
Chris Cinelli
committed
Testing when object have the same content but are not the same.
1 parent 3f06ff7 commit b7083c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/complex-args.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("complex args", () => {
1010
memoizedFn = Memoizerific(50)(function(arg1, arg2, arg3) {
1111
return arg1.num * arg2.num;
1212
});
13-
memoizedFn(arg1, arg2, arg3);
13+
memoizedFn(Object.assign({}, arg1), arg2, arg3);
1414
});
1515

1616
it("should be map or similar", () => {
@@ -36,4 +36,3 @@ describe("complex args", () => {
3636
expect(memoizedFn.lru.length).toEqual(2);
3737
});
3838
});
39-

0 commit comments

Comments
 (0)