Skip to content

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. 提示词导演

564 B
Raw Blame
import test from "node:test";
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";

const source = await readFile(new URL("../extension/skills-page.js", import.meta.url), "utf8");

test("Skill source projects display full paths and include descendant cases", () => {
  assert.match(source, /collectionSelectorLabelsById\(organizerState\)/);
  assert.match(source, /collectionEntryIds\(organizerState, projectId, \{ subtree: true \}\)/);
  assert.doesNotMatch(source, /projectId \? new Set\(organizerState\.collections\.find/);
});