-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fuzzy matching of response bodies #58
Comments
Also, if it were possible to just pass a sole function to expect, I could match however I wanted: e.g. .expect(function(res) {
return _({ "timestamp":/\n+/})(res.body)
})
.expect(200, done) |
I guess I could just do this in the final callback, but it'd be nice to be able to modularise the assertions: .expect(hasTimestamp)
.expect(hasSpecialHeaders)
.expect(200, done) |
+1 for this. My expectation was that Related: #72 |
This would be very cool. Was just wondering whether I could do this. |
Added in #87 |
Idea would be be able to be able to match partial responses ala
component/to-function
:The text was updated successfully, but these errors were encountered: