From 7aafcfcb0e2f0b53532bccf7a6a60a2ab4be7f15 Mon Sep 17 00:00:00 2001 From: Neil Stalker Date: Sat, 29 Jun 2013 00:07:38 +0100 Subject: [PATCH] Update test runner so it doesnt test the test runner files Alos remove the case sensitivity when detecting test files --- _infrastructure/tests/runner.js | 4 ++-- _infrastructure/tests/runner.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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;