Code coverage report for lib/util/isModulable.js

Statements: 100% (4 / 4)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » lib/util/ » isModulable.js
1 2 3 4 5 6 71   1 92 92    
fileBlacklist = ['app.js', 'index.js'];
 
module.exports = function(path) {
  var parts = path.split('/');
  return !(/^\./.test(parts[parts.length - 1]) || fileBlacklist.indexOf(path) !== -1);
}