Skip to content

Commit

Permalink
fix: match lowercase base names
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Dec 9, 2019
1 parent e3dac1c commit 03a96c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions commands/node/src/index.js
Expand Up @@ -67,11 +67,7 @@ class Runner extends EventEmitter {
.basename(f)
.split('.')
.shift();
if (srcName[0] === srcName[0].toUpperCase()) {
// Might be react Component
return testName === `${srcName[0].toLowerCase()}${srcName.slice(1)}`;
}
return testName === srcName;
return testName.toLowerCase() === srcName.toLowerCase();
});
return found;
}
Expand Down

0 comments on commit 03a96c5

Please sign in to comment.