Skip to content

Commit

Permalink
Merge pull request #134 from kentcdodds/pr/coverage
Browse files Browse the repository at this point in the history
test: ignore line that is difficult to simulate
  • Loading branch information
bebraw authored Sep 29, 2016
2 parents 0a463d1 + f5d4bde commit 300f5c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/no-root-files-node-modules-nameclash.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const customJoi = Joi.extend({
// For an initial iteration this node_module resolving is quite simplistic;
// it just takes the first node_module folder found looking upwards from the given root
const nodeModuleFolder = findNodeModules({ cwd: path_, relative: false })[0]
/* istanbul ignore if - it's hard to simulate this */
if (!nodeModuleFolder) {
return null
}
Expand Down

0 comments on commit 300f5c4

Please sign in to comment.