microsoft-typescript/no-in-operator

This commit is contained in:
Alexander T
2019-06-20 13:32:34 +03:00
parent 0e14b4e030
commit 9fcaa19ab0
13 changed files with 22 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ namespace Harness.Parallel.Host {
constructor(info: ErrorInfo | TestInfo) {
super(info.name[info.name.length - 1]);
this.info = info;
this.state = "error" in info ? "failed" : "passed";
this.state = "error" in info ? "failed" : "passed"; // eslint-disable-line microsoft-typescript/no-in-operator
this.pending = false;
}
}
@@ -518,7 +518,7 @@ namespace Harness.Parallel.Host {
function replayTest(runner: Mocha.Runner, test: RemoteTest) {
runner.emit("test", test);
if (test.isFailed()) {
runner.emit("fail", test, "error" in test.info ? rebuildError(test.info) : new Error("Unknown error"));
runner.emit("fail", test, "error" in test.info ? rebuildError(test.info) : new Error("Unknown error")); // eslint-disable-line microsoft-typescript/no-in-operator
}
else {
runner.emit("pass", test);