Chai's members can be used to test that an array contains certain values, as determined by strict equality or optionally deep equality.
Neither of those is appropriate to test arrays of big numbers (although deep equality works, it isn't ideal). We could maybe make the bignumber property modify members to compare values using bignumber equality?
On the other hand, this same issue shows up with many other Chai assertions, like oneOf...
Chai's
memberscan be used to test that an array contains certain values, as determined by strict equality or optionally deep equality.Neither of those is appropriate to test arrays of big numbers (although deep equality works, it isn't ideal). We could maybe make the
bignumberproperty modifymembersto compare values using bignumber equality?On the other hand, this same issue shows up with many other Chai assertions, like
oneOf...