Loading run-request-tests.md +2 −2 Original line number Original line Diff line number Diff line Loading @@ -19,11 +19,11 @@ var BPromise = require('../request-promise/node_modules/bluebird') BPromise.onPossiblyUnhandledRejection(function (err) { BPromise.onPossiblyUnhandledRejection(function (err) { return err return err }) }) module.exports = require('../request-promise/lib/rp.js') module.exports = require('../request-promise/') ``` ``` 6. Go to temp/request-promise/lib/rp.js 6. Go to temp/request-promise/lib/rp.js 7. Comment out the whole `var request = (function () { ... })();` block. 7. Comment out the `var request = stealthyRequire('request');` line. 8. Add `var request = require('../../request/index-orig.js');` right below. 8. Add `var request = require('../../request/index-orig.js');` right below. 9. Go to temp/request/ and run `npm test`. 9. Go to temp/request/ and run `npm test`. Loading Loading
run-request-tests.md +2 −2 Original line number Original line Diff line number Diff line Loading @@ -19,11 +19,11 @@ var BPromise = require('../request-promise/node_modules/bluebird') BPromise.onPossiblyUnhandledRejection(function (err) { BPromise.onPossiblyUnhandledRejection(function (err) { return err return err }) }) module.exports = require('../request-promise/lib/rp.js') module.exports = require('../request-promise/') ``` ``` 6. Go to temp/request-promise/lib/rp.js 6. Go to temp/request-promise/lib/rp.js 7. Comment out the whole `var request = (function () { ... })();` block. 7. Comment out the `var request = stealthyRequire('request');` line. 8. Add `var request = require('../../request/index-orig.js');` right below. 8. Add `var request = require('../../request/index-orig.js');` right below. 9. Go to temp/request/ and run `npm test`. 9. Go to temp/request/ and run `npm test`. Loading