diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index d0a23087a7..3b896c84f6 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -800,7 +800,7 @@ var DefinitelyTyped; SyntaxCheking.prototype.run = function (it, file, len, maxLen, callback) { var _this = this; - if (!endsWith(file, '-tests.ts')) { + if (!endsWith(file.toUpperCase(), '-TESTS.TS') && file.indexOf('../_infrastructure') < 0) { new Test(file).run(function (o) { var failed = false; @@ -915,7 +915,7 @@ var DefinitelyTyped; TestEval.prototype.run = function (it, file, len, maxLen, callback) { var _this = this; - if (endsWith(file, '-tests.ts')) { + if (endsWith(file.toUpperCase(), '-TESTS.TS')) { new Test(file).run(function (o) { var failed = false; diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index 8d0eeae142..d6e58ff3bc 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -291,8 +291,8 @@ module DefinitelyTyped { } } - private run(it, file, len, maxLen, callback: Function) { - if (!endsWith(file, '-tests.ts')) { + private run(it, file, len, maxLen, callback: Function) { + if (!endsWith(file.toUpperCase(), '-TESTS.TS') && file.indexOf('../_infrastructure') < 0) { new Test(file).run((o) => { var failed = false; @@ -408,7 +408,7 @@ module DefinitelyTyped { } private run(it, file, len, maxLen, callback: Function) { - if (endsWith(file, '-tests.ts')) { + if (endsWith(file.toUpperCase(), '-TESTS.TS')) { new Test(file).run((o) => { var failed = false;