Refactoring of tests

This commit is contained in:
Pieter Vander Vennet 2022-01-14 13:58:15 +01:00
parent 555dbf3478
commit f67d0701b0
19 changed files with 64 additions and 28 deletions

View file

@ -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;
}