diff --git a/resources/watch.js b/resources/watch.js index 9ca6682..47676cb 100644 --- a/resources/watch.js +++ b/resources/watch.js @@ -171,7 +171,7 @@ function srcPath(filepath) { // Predicates function isJS(filepath) { - return filepath.indexOf('.js') === filepath.length - 3; + return filepath.endsWith('.js'); } function allTests(filepaths) {