We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use expectbody, but it supports String, and I looked at your source code and it does:
expectbody
if (this.opts.expectBody && this.opts.expectBody !== resp.body) { return this.emit('mismatch', resp.body) }
The return body of my interface is an object. Your rules will very hard match. Why not use this:
if (this.opts.expectBody && !resp.body.includes(this.opts.expectBody)) { return this.emit('mismatch', resp.body) }
The text was updated successfully, but these errors were encountered:
Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Sorry, something went wrong.
Yes, it's my pleasure
Hello, I simply added assertions to autocannon. pr has been mentioned
No branches or pull requests
I want to use
expectbody
, but it supports String, and I looked at your source code and it does:The return body of my interface is an object. Your rules will very hard match. Why not use this:
The text was updated successfully, but these errors were encountered: