expect({a: 1}).to.deep.equal({a: 1}); code example Example: chai compare arrays expect([1, 2, 3]).to.eql([1, 2, 3]) // don't use `equal`