Closed ElvinEfendi closed 4 months ago
@ElvinEfendi Thanks for reporting this - sorry for the slow response - I've been away on leave. I'll take a look as soon as I can.
@ElvinEfendi
I've had an initial look at this and I agree that it is an accidental regression caused by #648.
Many thanks for supplying a test that reproduces the problem.
I've attempted a quick fix in #655.
If you get a chance, could you try out the code in the fix-has-entry-with-keyword-args-regression
branch and see if it fixes your problem...?
@ElvinEfendi I've just released the fix in v2.4.1. I hope it solves your problem!
Since https://github.com/freerange/mocha/pull/648,
has_entry
's behaviour changed:In the versions before the linked PR the test above would fail because
{ k: "v", extra: "extra" }
is different than the expected{k: "v"}
. But after that PR the test above succeeds.