Answers for "chai compare array with deep equal"

1

chai compare arrays

expect([1, 2, 3]).to.eql([1, 2, 3]) // don't use `equal`
Posted by: Guest on July-20-2020
0

chai expect array without order

expect([2, 1, 3].sort()).to.eql([3, 1, 2].sort())
Posted by: Guest on August-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language