Skip to content

Commit

Permalink
chore: address @coreyfarrell's code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Jun 3, 2018
1 parent 35a031b commit 64eeed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions index.js
Expand Up @@ -311,9 +311,6 @@ NYC.prototype._addHook = function (type) {
libHook['hook' + type](dummyMatcher, handleJs, { extensions: this.extensions })
}

NYC.prototype._wrapRequire = function () {
}

NYC.prototype._addRequireHooks = function () {
if (this.hookRequire) {
this._addHook('Require')
Expand Down
2 changes: 1 addition & 1 deletion test/nyc-bin.js
Expand Up @@ -570,7 +570,7 @@ describe('the nyc cli', function () {

describe('hooks', function () {
it('provides coverage for requireJS and AMD modules', function (done) {
var args = [bin, '--hook-run-in-this-context', process.execPath, './index.js']
var args = [bin, '--hook-run-in-this-context', '--hook-require=false', process.execPath, './index.js']

var proc = spawn(process.execPath, args, {
cwd: fixturesHooks,
Expand Down

0 comments on commit 64eeed2

Please sign in to comment.