Use Chai and Improve Assertion
Opened this issue · 0 comments
bh2smith commented
In this case, I'd test it ignoring the order, so that the test reflects our expectations on what the function does. It might be enough to just change your test condition from toStrictEqual
to has.deep.member
(docs, assuming Chai is used).
Originally posted by @fedgiac in #242 (comment)