Skip to content

Commit

Permalink
remove json3
Browse files Browse the repository at this point in the history
this was req'd by IE8/IE7
  • Loading branch information
boneskull committed Sep 29, 2017
1 parent 07c76e4 commit 6bd42f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions lib/runnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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`.
Expand Down
8 changes: 3 additions & 5 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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);
Expand Down

0 comments on commit 6bd42f8

Please sign in to comment.