File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Nodejs/Product/Nodejs/TestFrameworks Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments