Fix success or failed determine code bug

currently implementation was erroneous decision, e.g. _infrastructure/tests/typescript/tsc.js not exists.
This commit is contained in:
Masahiro Wakame
2013-11-21 19:59:40 +09:00
committed by vvakame
parent 88d19cf66e
commit c94bdd6794
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -691,7 +691,7 @@ var DefinitelyTyped;
}
Object.defineProperty(TestResult.prototype, "success", {
get: function () {
return this.exitCode !== 1;
return this.exitCode === 0;
},
enumerable: true,
configurable: true
+1 -1
View File
@@ -139,7 +139,7 @@ module DefinitelyTyped.TestManager {
exitCode:number;
public get success():boolean {
return this.exitCode !== 1;
return this.exitCode === 0;
}
}