Skip to content

Commit 8ff4068

Browse files
committed
Minor fixes to test runners
1 parent b40d16e commit 8ff4068

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Nodejs/Product/Nodejs/TestFrameworks/Tape/tape.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ function run_tests(testInfo, callback) {
112112
});
113113

114114
harness.onFinish(function () {
115-
// TODO: This still doesn't seem to handle async tests with plan issues.
116115
if (capture) {
117116
// Something didn't finish. Finish it now.
118117
result.passed = false;

Nodejs/Product/Nodejs/TestFrameworks/mocha/mocha.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ var run_tests = function (testCases, callback) {
9292
var mocha = initializeMocha(Mocha, testCases[0].projectFolder);
9393

9494
var testGrepString = '^(' + testCases.map(function (testCase) {
95-
return testCase.testName
95+
return escapeRegExp(testCase.testName);
9696
}).join('|') + ')$';
97-
97+
9898
if (testGrepString) {
9999
mocha.grep(new RegExp(testGrepString));
100100
}

0 commit comments

Comments
 (0)