Skip to content

Commit

Permalink
fix: Replaced util._extend with Object.assign due to deprecated since…
Browse files Browse the repository at this point in the history
… node v6.
  • Loading branch information
Jonas Lilja authored and gr2m committed Jul 10, 2018
1 parent 5aa1081 commit 7fd2329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/scope.js
Expand Up @@ -9,7 +9,6 @@ var globalIntercept = require('./intercept')
, _ = require('lodash')
, debug = require('debug')('nock.scope')
, EventEmitter = require('events').EventEmitter
, extend = require('util')._extend
, globalEmitter = require('./global_emitter')
, util = require('util')
, Interceptor = require('./interceptor') ;
Expand Down Expand Up @@ -346,7 +345,7 @@ function define(nockDefs) {
return nocks;
}

module.exports = extend(startScope, {
module.exports = Object.assign(startScope, {
cleanAll: cleanAll,
activate: globalIntercept.activate,
isActive: globalIntercept.isActive,
Expand Down

0 comments on commit 7fd2329

Please sign in to comment.