forked from rosa/hakurei
Compare commits
14 Commits
93f8282192
...
fb47282905
| Author | SHA1 | Date | |
|---|---|---|---|
|
fb47282905
|
|||
|
2ef1f0100c
|
|||
|
6760efec54
|
|||
|
676b189cf0
|
|||
|
96f8565321
|
|||
|
e6b315be80
|
|||
|
79b909e293
|
|||
|
c3eed03998
|
|||
|
ff0cff0488
|
|||
|
09379cef7d
|
|||
|
2a7d917c06
|
|||
|
fb4226aaee
|
|||
|
cc91d1e298
|
|||
|
18962dcbb3
|
@@ -83,6 +83,16 @@ 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);
|
||||
}
|
||||
@@ -96,16 +106,6 @@ 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