Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

style(dashboard): format screencast test

Jamil Zakirov97759de9681a
diff --git a/dashboard/src/components/molecules/ScreencastTile.test.tsx b/dashboard/src/components/molecules/ScreencastTile.test.tsx
index 240ba79f..1a6a1dd5 100644
--- a/dashboard/src/components/molecules/ScreencastTile.test.tsx
+++ b/dashboard/src/components/molecules/ScreencastTile.test.tsx
@@ -2,7 +2,9 @@ import { render, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import ScreencastTile from "./ScreencastTile";
-const webSocketMock = vi.fn(function MockWebSocket(this: Record<string, unknown>) {
+const webSocketMock = vi.fn(function MockWebSocket(
+ this: Record<string, unknown>,
+) {
this.close = vi.fn();
});
@@ -14,9 +16,9 @@ describe("ScreencastTile", () => {
new URL("https://browser.zakirov.dev/dashboard/profiles"),
);
window.localStorage.setItem("pinchtab.auth.token", "secret-token");
- vi
- .spyOn(HTMLCanvasElement.prototype, "getContext")
- .mockReturnValue({ drawImage: vi.fn() } as unknown as CanvasRenderingContext2D);
+ vi.spyOn(HTMLCanvasElement.prototype, "getContext").mockReturnValue({
+ drawImage: vi.fn(),
+ } as unknown as CanvasRenderingContext2D);
vi.stubGlobal("WebSocket", webSocketMock);
});