mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
Fix Biome and Stylelint formatting so pnpm lint passes.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -42,8 +42,7 @@ function makeScreenshotDeps(
|
||||
opts.get ??
|
||||
vi.fn(async (tabId: number) => ({ id: tabId, windowId: 100, active: true }) as chrome.tabs.Tab);
|
||||
const query =
|
||||
opts.query ??
|
||||
vi.fn(async () => [{ id: 7, windowId: 100, active: true } as chrome.tabs.Tab]);
|
||||
opts.query ?? vi.fn(async () => [{ id: 7, windowId: 100, active: true } as chrome.tabs.Tab]);
|
||||
const captureVisibleTab =
|
||||
opts.captureVisibleTab ?? vi.fn(async () => `data:image/png;base64,${TINY_PNG}`);
|
||||
const tabsApi = { get, query };
|
||||
@@ -118,7 +117,11 @@ describe("handleScreenshot", () => {
|
||||
const res = await handleScreenshot(
|
||||
sm,
|
||||
{ session_id: "aa11" },
|
||||
makeScreenshotDeps({ captureVisibleTab: vi.fn(), get: emptyGet, query: vi.fn(async () => []) }),
|
||||
makeScreenshotDeps({
|
||||
captureVisibleTab: vi.fn(),
|
||||
get: emptyGet,
|
||||
query: vi.fn(async () => []),
|
||||
}),
|
||||
);
|
||||
expect(res).toMatchObject({ code: "not_found" });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user