Update test runner so it doesnt test the test runner files

Alos remove the case sensitivity when detecting test files
This commit is contained in:
Neil Stalker
2013-06-29 00:07:38 +01:00
parent d48c1eadef
commit 7aafcfcb0e
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+3 -3
View File
@@ -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;