mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:54:46 +00:00
test(zalouser): type mock Zalo constructor result
This commit is contained in:
committed by
Peter Steinberger
parent
ddc9581d00
commit
3e5544cc76
@@ -14,7 +14,9 @@ describe("zca-client runtime loading", () => {
|
||||
const zcaClient = await import("./zca-client.js");
|
||||
expect(runtimeFactory).not.toHaveBeenCalled();
|
||||
|
||||
const client = await zcaClient.createZalo({ logging: false, selfListen: true });
|
||||
const client = (await zcaClient.createZalo({ logging: false, selfListen: true })) as {
|
||||
options?: { logging?: boolean; selfListen?: boolean };
|
||||
};
|
||||
|
||||
expect(runtimeFactory).toHaveBeenCalledTimes(1);
|
||||
expect((client as { options?: { logging?: boolean; selfListen?: boolean } }).options).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user