forked from rosa/hakurei
Compare commits
12 Commits
fb47282905
...
93f8282192
| Author | SHA1 | Date | |
|---|---|---|---|
|
93f8282192
|
|||
|
378d05300b
|
|||
|
b58250477c
|
|||
|
39905c64bf
|
|||
|
568cdba0cf
|
|||
|
1d91fd2bfc
|
|||
|
b8a1cd43e7
|
|||
|
c9e56fca41
|
|||
|
4407e7dab4
|
|||
|
c1943e96ca
|
|||
|
b7e86a6a0b
|
|||
|
a533f7ceec
|
@@ -83,16 +83,6 @@ export class TestController {
|
||||
throw new AbortSentinel();
|
||||
}
|
||||
|
||||
skip(message?: string): never {
|
||||
if (message != null) this.log(message);
|
||||
if (this.#state !== "failure") this.#state = "skip";
|
||||
throw new AbortSentinel();
|
||||
}
|
||||
|
||||
skipped(): boolean {
|
||||
return this.#state === "skip";
|
||||
}
|
||||
|
||||
log(message: string) {
|
||||
this.logs.push(message);
|
||||
}
|
||||
@@ -106,6 +96,16 @@ export class TestController {
|
||||
this.log(message);
|
||||
this.failNow();
|
||||
}
|
||||
|
||||
skip(message?: string): never {
|
||||
if (message != null) this.log(message);
|
||||
if (this.#state !== "failure") this.#state = "skip";
|
||||
throw new AbortSentinel();
|
||||
}
|
||||
|
||||
skipped(): boolean {
|
||||
return this.#state === "skip";
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user