☕️ Classic, reliable, trusted test framework for Node.js and the browser
remove json3
Christopher Hiller6bd42f89cb61
diff --git a/lib/runnable.js b/lib/runnable.jsindex 8194d322..03d41f9d 100644--- a/lib/runnable.js+++ b/lib/runnable.js@@ -10,7 +10,6 @@ var Pending = require('./pending');var debug = require('debug')('mocha:runnable');var milliseconds = require('./ms');var utils = require('./utils');-var create = require('lodash.create');/*** Save timer references to avoid Sinon interfering (see GH-237).@@ -64,9 +63,7 @@ function Runnable (title, fn) {/*** Inherit from `EventEmitter.prototype`.*/-Runnable.prototype = create(EventEmitter.prototype, {- constructor: Runnable-});+utils.inherits(Runnable, EventEmitter);/*** Set & get timeout `ms`.diff --git a/lib/test.js b/lib/test.jsindex 66bb57cb..733f1b48 100644--- a/lib/test.js+++ b/lib/test.js@@ -5,8 +5,8 @@*/var Runnable = require('./runnable');-var create = require('lodash.create');-var isString = require('./utils').isString;+var utils = require('./utils');+var isString = utils.isString;/*** Expose `Test`.@@ -33,9 +33,7 @@ function Test (title, fn) {/*** Inherit from `Runnable.prototype`.*/-Test.prototype = create(Runnable.prototype, {- constructor: Test-});+utils.inherits(Test, Runnable);Test.prototype.clone = function () {var test = new Test(this.title, this.fn);