Skip to content
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

Api testing with visionmedia/supertest #30

Open
designeng opened this issue Dec 9, 2015 · 0 comments
Open

Api testing with visionmedia/supertest #30

designeng opened this issue Dec 9, 2015 · 0 comments

Comments

@designeng
Copy link

I am trying to test express api with supertest, but this POST request
https://gist.github.com/designeng/5af79b921ec5965a3924#file-falcor-model-spec-js-L13-L20
fails because of JSON.parse().

The situation seems can be improved with this hack:
https://gist.github.com/designeng/5af79b921ec5965a3924#file-requesttocontext-js-L19

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant