-
Notifications
You must be signed in to change notification settings - Fork 10
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
Library is fragile in baseUrl configuration #8
Comments
Hey I will take a look and amend this. In the meantime you could remove the trailing / in the baseUrl to make it happy again. Thanks |
I see in the code replication of |
Sounds good, would you like to fork and add? |
@ShaunBaker Currently having a look at the test suite |
From the test suite I can not see if the superagent is actually mocked. Are the test actually making requests to a localhost prediction.io instance? |
@dmtrs Yes the tests run against a local instance. When I originally worked on this I was pressed for time to mock etc! |
@ShaunBaker Do you have any preferences on a mock library in node? I have used http://sinonjs.org/ in some projects |
Been super busy. Did you get anywhere with Sinon or something similar? Let me know and if not I will make some time to improve it. Thanks |
Hey Shaun, I am sorry but I did not have the time to do so. I would not be able to get On Thu, Aug 14, 2014 at 1:27 AM, Shaun Baker notifications@github.com
|
Results in
This is because the request is structured as
http://127.0.0.1:8000//users/nonexistinguserid.json
with double//
and the response of the server isThe text was updated successfully, but these errors were encountered: