test(zalouser): type mock Zalo constructor result

This commit is contained in:
pashpashpash
2026-05-11 00:41:41 -07:00
committed by Peter Steinberger
parent ddc9581d00
commit 3e5544cc76

View File

@@ -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({