import { describe, expect, it } from "vitest"; import { BROWSER_FETCH_AND_INJECT_PLACE } from "@/workers/rpa/fix-place/browser-place-commit"; describe("browser-place-commit", () => { it("BROWSER_FETCH_AND_INJECT_PLACE 为 Playwright 可执行 async 函数体", () => { expect(BROWSER_FETCH_AND_INJECT_PLACE.trim().startsWith("async (arg)")).toBe( true, ); expect(BROWSER_FETCH_AND_INJECT_PLACE).not.toContain("(async function"); }); });