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 am currently achieving this by initializing the request then modifying the method before sending. Something like this:
const request = chai.request(app) .get(url) .set('Authorization', bearerToken); request.method = newMethod; const response = await request.send(data);
I am wondering if there is a better way to go about this.
Thank you
The text was updated successfully, but these errors were encountered:
Can't we do chai.request(app)[newMethod](url).send(data)?
chai.request(app)[newMethod](url).send(data)
Sorry, something went wrong.
No branches or pull requests
I am currently achieving this by initializing the request then modifying the method before sending. Something like this:
I am wondering if there is a better way to go about this.
Thank you
The text was updated successfully, but these errors were encountered: