Skip to content

Commit

Permalink
tests: fix karma auto-run tests for lib/core (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker authored Jan 6, 2021
1 parent ec16fb7 commit 385e1ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ if (testFiles.length) {
}

return file;
} else if (file.includes('lib/checks') || file.includes('lib/commons')) {
} else if (basename.includes('-matches.js')) {
return path.join('test/rule-matches', basename);
} else {
var filePath = file.replace('lib/', 'test/');

if (file.includes('-evaluate.js')) {
return filePath.replace('-evaluate.js', '.js');
}

return filePath;
} else if (basename.includes('-matches.js')) {
return path.join('test/rule-matches', basename);
}
});
} else if (testDirs.length) {
Expand Down

0 comments on commit 385e1ed

Please sign in to comment.