Add toEqualUnsorted
sz-piotr opened this issue · 2 comments
sz-piotr commented
Similar to toBeAnArrayWith
but checks that the length is the same as the number of items checked.
krzkaczor commented
I would propose a more explicit name: toBeAnArrayOfSize
. toBeAnArrayOf
in my mind could be used with types ie. toBeAnArrayOf(Strings)
sz-piotr commented
Current plan is to implement this as expect([1, 2]).toEqualUnsorted([2, 1])