Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
should only use the host when calling nock, and not the full uri
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyej committed Nov 4, 2015
1 parent 459e0a3 commit 10ff6db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/sp.ds.requestExecutor_test.js
Expand Up @@ -74,9 +74,10 @@ describe('ds:', function () {

it('should return resource error in case of incorrect request', function (done) {
var cbSpy;
var uri = 'https://api.stormpath.com/v1/test';
var host = 'https://api.stormpath.com';
var uri = host + '/v1/test';
var res = {test: 'boom'};
nock(uri).get('/v1/test').reply(400, res);
nock(host).get('/v1/test').reply(400, res);
function cb(err, body) {
err.should.be.an.instanceof(ResourceError);
expect(body).to.be.null;
Expand Down

0 comments on commit 10ff6db

Please sign in to comment.