mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user