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

Improve post request test #38

Open
raq929 opened this issue Dec 13, 2016 · 1 comment
Open

Improve post request test #38

raq929 opened this issue Dec 13, 2016 · 1 comment

Comments

@raq929
Copy link
Contributor

raq929 commented Dec 13, 2016

- .expect(200, done)
+ .expect(200)
+ .end(function(err, res){
+    if(err){
+        console.log(res.error);
+        done(err);
+     }
+     else {
+         console.log(res);
+         done();
+     }
+  });
@raq929
Copy link
Contributor Author

raq929 commented Dec 14, 2016

This is mostly for debugging purposes; it exposes the server response.

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