You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#359 addressed a very similar bug, except it was with the array given as the expect param. It was quite a simple fix - in this case, we just need to change assertions.jsL1084 from actual.sort() to actual.slice(0).sort(). Of course then you'll also need to write some tests to back it up (you can copy the existing tests from #359here and here and just tweak them to assert on the keys() param instead).
If you'd like to write up a PR for this, then please do so, and I'll happily merge it in. Doing so means you'll get on our hall of fame 😄
I ran into an unexpected behavior with chai that I think should be considered a bug. Here is a reduced repro of the issue which currently fails:
Calling
keys()
should be able to do the comparison without mutating the inputted array since that array could be used in later assertions.The text was updated successfully, but these errors were encountered: