mocha ignore order of an array code example Example: chai expect array without order expect([2, 1, 3].sort()).to.eql([3, 1, 2].sort())