forked from MapComplete/MapComplete
Refactoring of tests
This commit is contained in:
parent
555dbf3478
commit
f67d0701b0
19 changed files with 64 additions and 28 deletions
|
@ -3,8 +3,8 @@ export default class T {
|
|||
public readonly name: string;
|
||||
private readonly _tests: [string, (() => (void | Promise<void>))][];
|
||||
|
||||
constructor(testsuite: string, tests: [string, () => (Promise<void> | void)][]) {
|
||||
this.name = testsuite
|
||||
constructor(tests: [string, () => (Promise<void> | void)][]) {
|
||||
this.name = this.constructor.name;
|
||||
this._tests = tests;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue