Loading lib/rp.js +1 −2 Original line number Diff line number Diff line Loading @@ -86,8 +86,7 @@ Object.keys(request).filter(function(key){ rp.request = request; rp.defaults = function (options, requester) { options.simple = options.simple || defaultOptions.simple; options.resolveWithFullResponse = options.resolveWithFullResponse || defaultOptions.resolveWithFullResponse; _.defaults(options, defaultOptions); var def = function (method) { var d = function (uri, opts, callback) { Loading test/spec/request-test.js +1 −3 Original line number Diff line number Diff line Loading @@ -393,8 +393,7 @@ describe('Request-Promise', function () { describe('should cover the defaults mechanism', function () { // FIXME: Simple default sticks to true xit("for overwriting the simple property's default", function () { it("for overwriting the simple property's default", function () { var nonSimpleRP = rp.defaults({ simple: false }); Loading @@ -413,7 +412,6 @@ describe('Request-Promise', function () { }); // FIXME: Simple default sticks to true xit('for cascading overwrites', function () { var nonSimpleRP = rp.defaults({ simple: false }); Loading Loading
lib/rp.js +1 −2 Original line number Diff line number Diff line Loading @@ -86,8 +86,7 @@ Object.keys(request).filter(function(key){ rp.request = request; rp.defaults = function (options, requester) { options.simple = options.simple || defaultOptions.simple; options.resolveWithFullResponse = options.resolveWithFullResponse || defaultOptions.resolveWithFullResponse; _.defaults(options, defaultOptions); var def = function (method) { var d = function (uri, opts, callback) { Loading
test/spec/request-test.js +1 −3 Original line number Diff line number Diff line Loading @@ -393,8 +393,7 @@ describe('Request-Promise', function () { describe('should cover the defaults mechanism', function () { // FIXME: Simple default sticks to true xit("for overwriting the simple property's default", function () { it("for overwriting the simple property's default", function () { var nonSimpleRP = rp.defaults({ simple: false }); Loading @@ -413,7 +412,6 @@ describe('Request-Promise', function () { }); // FIXME: Simple default sticks to true xit('for cascading overwrites', function () { var nonSimpleRP = rp.defaults({ simple: false }); Loading