mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 17:30:21 +00:00
style: fix extension lint violations
This commit is contained in:
@@ -106,7 +106,7 @@ describe("PlaywrightDiffScreenshotter", () => {
|
||||
});
|
||||
|
||||
it("renders PDF output when format is pdf", async () => {
|
||||
const { pages, browser, screenshotter } = await createScreenshotterHarness();
|
||||
const { pages, _browser, screenshotter } = await createScreenshotterHarness();
|
||||
const pdfPath = path.join(rootDir, "preview.pdf");
|
||||
|
||||
await screenshotter.screenshotHtml({
|
||||
|
||||
@@ -258,6 +258,7 @@ export class PlaywrightDiffScreenshotter implements DiffScreenshotter {
|
||||
const reason = error instanceof Error ? error.message : String(error);
|
||||
throw new Error(
|
||||
`Diff PNG/PDF rendering requires a Chromium-compatible browser. Set browser.executablePath or install Chrome/Chromium. ${reason}`,
|
||||
{ cause: error },
|
||||
);
|
||||
} finally {
|
||||
await page?.close().catch(() => {});
|
||||
|
||||
@@ -80,7 +80,7 @@ function createApi(): OpenClawPluginApi {
|
||||
},
|
||||
},
|
||||
runtime: {} as OpenClawPluginApi["runtime"],
|
||||
}) as OpenClawPluginApi;
|
||||
});
|
||||
}
|
||||
|
||||
function createPngScreenshotter(
|
||||
|
||||
@@ -485,7 +485,7 @@ function createApi(pluginConfig?: Record<string, unknown>): OpenClawPluginApi {
|
||||
},
|
||||
pluginConfig,
|
||||
runtime: {} as OpenClawPluginApi["runtime"],
|
||||
}) as OpenClawPluginApi;
|
||||
});
|
||||
}
|
||||
|
||||
function createToolWithScreenshotter(
|
||||
|
||||
Reference in New Issue
Block a user