Skip to content

Commit

Permalink
Cleanup #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Jul 24, 2014
1 parent 8ba8416 commit c6e658a
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 c6e658a

Please sign in to comment.