Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickael Burguet committed Jul 22, 2016
1 parent 2008032 commit 3798d4a
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 @@ -146,7 +146,7 @@ NYC.prototype.addFile = function (filename) {
NYC.prototype._readTranspiledSource = function (filePath) {
var source = null
var ext = path.extname(filePath)
if (Module._extensions[ext] === 'undefined') {
if (typeof Module._extensions[ext] === 'undefined') {
ext = '.js'
}
Module._extensions[ext]({
Expand Down

0 comments on commit 3798d4a

Please sign in to comment.