Loading lib/rp.js +5 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,11 @@ function buildPromise (c, requester) { }); } else { if (c.transform && typeof c.transform === 'function') { try { resolve(c.transform(body, response)); } catch (e) { reject(e); } } else if (c.resolveWithFullResponse) { resolve(response); } else { Loading test/spec/request-test.js +1 −2 Original line number Diff line number Diff line Loading @@ -312,8 +312,7 @@ describe('Request-Promise', function () { }); // FIXME xit('that throws an exception', function () { it('that throws an exception', function () { var options = { url: 'http://localhost:4000/200', Loading Loading
lib/rp.js +5 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,11 @@ function buildPromise (c, requester) { }); } else { if (c.transform && typeof c.transform === 'function') { try { resolve(c.transform(body, response)); } catch (e) { reject(e); } } else if (c.resolveWithFullResponse) { resolve(response); } else { Loading
test/spec/request-test.js +1 −2 Original line number Diff line number Diff line Loading @@ -312,8 +312,7 @@ describe('Request-Promise', function () { }); // FIXME xit('that throws an exception', function () { it('that throws an exception', function () { var options = { url: 'http://localhost:4000/200', Loading