Spot it. Save it. Free, local-first Chrome extension for images, videos and prompts. Explore 2,000+ curated cases and connect your library to AI Agents via MCP. 提示词导演
JavaScript ai-artai-videochrome-extensionclaude-codecodexhiggsfieldjimenglocal-firstmcpmidjourneymoodboardprompt-engineeringprompt-libraryprompt-managerreference-libraryseedancevisual-bookmarksweb-clipper
import test from "node:test";
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { verifyPdfjsRuntime } from "../tools/pdfjs-runtime.mjs";
test("PDF.js packaging uses one exact dependency version and a byte-identical vendor runtime", async () => {
const result = await verifyPdfjsRuntime();
const projectPackage = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
assert.equal(result.version, projectPackage.dependencies["pdfjs-dist"]);
assert.ok(result.fileCount > 0);
});
test("the PDF viewer keeps dynamic expression evaluation disabled", async () => {
const source = await readFile(new URL("../extension/document-viewer.js", import.meta.url), "utf8");
assert.match(source, /isEvalSupported:\s*false/);
});