mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:47:39 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -36,9 +36,7 @@ describe("web login", () => {
|
||||
it("loginWeb waits for connection and closes", async () => {
|
||||
const sock = await createWaSocket();
|
||||
const close = vi.spyOn(sock.ws, "close");
|
||||
const waiter: typeof waitForWaConnection = vi
|
||||
.fn()
|
||||
.mockResolvedValue(undefined);
|
||||
const waiter: typeof waitForWaConnection = vi.fn().mockResolvedValue(undefined);
|
||||
await loginWeb(false, waiter);
|
||||
await new Promise((resolve) => setTimeout(resolve, 550));
|
||||
expect(close).toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user