Skip to content

Commit

Permalink
handle module not always being defined - closes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 30, 2015
1 parent 875b012 commit a1914fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var Reporter = require('jasmine-terminal-reporter');
var SilentReporter = require('./silent-reporter');

function deleteRequireCache(id) {
if (id.indexOf('node_modules') !== -1) {
if (!id || id.indexOf('node_modules') !== -1) {
return;
}

Expand Down

0 comments on commit a1914fa

Please sign in to comment.