refactor: remove tester class

This commit is contained in:
Derrick Hammer 2023-07-20 16:14:41 -04:00
parent d477417ff6
commit 4403ef8151
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 21 deletions

View File

@ -43,24 +43,3 @@ export async function loadTester(page: Page, port = 8080) {
return kernel.init(); return kernel.init();
}); });
} }
class Tester {
private page: Page;
constructor(page: Page) {
this.page = page;
}
async callModule(id: string, method: string, data = {}): Promise<ErrTuple> {
return this.page.evaluate(
async (id, method, data) => {
return kernel.callModule(id, method, data);
},
id,
method,
data,
);
}
}
export const tester = (page: Page) => new Tester(page);