mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 03:08:29 +00:00
chore: Fix types in tests 27/N.
This commit is contained in:
@@ -37,7 +37,9 @@ describe("web login", () => {
|
||||
});
|
||||
|
||||
it("loginWeb waits for connection and closes", async () => {
|
||||
const sock = await createWaSocket();
|
||||
const sock = await (
|
||||
createWaSocket as unknown as () => Promise<{ ws: { close: () => void } }>
|
||||
)();
|
||||
const close = vi.spyOn(sock.ws, "close");
|
||||
const waiter: typeof waitForWaConnection = vi.fn().mockResolvedValue(undefined);
|
||||
await loginWeb(false, waiter);
|
||||
|
||||
Reference in New Issue
Block a user