You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.expect(401).expect("should respond with error: invalid_client",function(err,res,body){JSON.parse(body).should.have.property("error","invalid_client");})
Here .should.have.property is using the Chai assertion library, but you could just use require("assert") of course.
Hi,
For certain assertions I'm making, I would rather so a looser equal on the result. I was wondering if there was a nice way of doing something like
I basically want to assert on the structure of the response rather than the data/all of the data.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: