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