mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 21:31:26 +00:00
Merged via squash.
Prepared head SHA: 6f5813ffff
Co-authored-by: keithce <2086282+keithce@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
23 lines
681 B
TypeScript
23 lines
681 B
TypeScript
import path from "node:path";
|
|
import { pathToFileURL } from "node:url";
|
|
import { expect, it } from "vitest";
|
|
|
|
it("loads the plugin-entry runtime wrapper through native ESM import", async () => {
|
|
const wrapperPath = path.join(
|
|
process.cwd(),
|
|
"extensions",
|
|
"matrix",
|
|
"src",
|
|
"plugin-entry.runtime.js",
|
|
);
|
|
const wrapperUrl = pathToFileURL(wrapperPath);
|
|
const mod = await import(wrapperUrl.href);
|
|
|
|
expect(mod).toMatchObject({
|
|
ensureMatrixCryptoRuntime: expect.any(Function),
|
|
handleVerifyRecoveryKey: expect.any(Function),
|
|
handleVerificationBootstrap: expect.any(Function),
|
|
handleVerificationStatus: expect.any(Function),
|
|
});
|
|
}, 240_000);
|