Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 1401545

Browse files
committed
improving runner to ignore non html tests
1 parent c91c95c commit 1401545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/noderunner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function listTests() {
3939
doing = todo.shift();
4040
path = LIBS.path.resolve(TEST_DIR, doing);
4141
stat = LIBS.fs.statSync(path);
42-
if (stat.isFile()) {
42+
if (stat.isFile() && LIBS.path.extname(path) === '.html') {
4343
tests.push(doing);
4444
continue;
4545
}

0 commit comments

Comments
 (0)