-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hey,
I believe that this option does nothing.
it("optional equal - fastDeepEquals",function() {
const optionalEqual = nanomemoize(function(a,b) { return [a,b]; },
{
equals:()=> {
throw new Error("never called")
}}),
[a1,a2] = optionalEqual({a:1}, {a:1}),
values = optionalEqual.values();
expect(fastDeepEqual(a1,a2)).to.equal(true);
expect(values[0].length).to.equal(2);
expect(fastDeepEqual(values[0][0],a1)).to.equal(true);
expect(fastDeepEqual(values[0][1],a2)).to.equal(true);
})
I tried to break the tests by throwing but the test is still green
Metadata
Metadata
Assignees
Labels
No labels