Skip to content

Commit

Permalink
Cleanup mochajs#1267
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery authored and tandrewnichols committed Dec 15, 2014
1 parent 846766b commit 7a85507
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ var path = require('path')
, join = path.join
, cwd = process.cwd();

/**
* Add node_modules directory to use local modules for ui and reporters.
*/

module.paths.push(cwd, join(cwd, 'node_modules'));

/**
* Expose `Mocha`.
*/
Expand Down Expand Up @@ -64,7 +70,6 @@ function image(name) {
*/

function Mocha(options) {
module.paths.push(cwd, join(cwd, 'node_modules'));
options = options || {};
this.files = [];
this.options = options;
Expand Down

0 comments on commit 7a85507

Please sign in to comment.