MCPcopy
hub / github.com/element-hq/element-web / TestModule

Class TestModule

packages/module-api/src/loader.test.ts:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 test("should load a module", async () => {
26 const TestModule = {
27 default: class TestModule {
28 public static moduleApiVersion = "^1.0.0";
29 public constructor(private readonly api: Api) {}
30 public async load(): Promise<void> {}
31 },
32 };
33
34 const spy = vi.spyOn(TestModule.default.prototype, "load");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected