1 parent
dcf4840c7a
commit
e3dc4250cc
1 file changed
+5
-1
@@ -18,7 +18,11 @@ describe("站点能力规格", () => {
|
|||||||
it("进入能力目录(41 个已有能力 + 整理元数据补全 + 起草巡检);类别 / 风险 / 重放按约定", () => {
|
it("进入能力目录(41 个已有能力 + 整理元数据补全 + 起草巡检);类别 / 风险 / 重放按约定", () => {
|
||||||
expect(CAPABILITY_IDS).toHaveLength(43);
|
expect(CAPABILITY_IDS).toHaveLength(43);
|
||||||
expect(capabilitySpec("metadata.resolve_organize")).toMatchObject({ kind: "execute", replay: "never" });
|
expect(capabilitySpec("metadata.resolve_organize")).toMatchObject({ kind: "execute", replay: "never" });
|
||||||
expect(capabilitySpec("schedule.draft_check")).toMatchObject({ kind: "propose", riskLevel: "low", replay: "never" });
|
expect(capabilitySpec("schedule.draft_check")).toMatchObject({
|
||||||
|
kind: "propose",
|
||||||
|
riskLevel: "low",
|
||||||
|
replay: "never",
|
||||||
|
});
|
||||||
for (const id of SITE_IDS) expect(CAPABILITY_IDS).toContain(id);
|
for (const id of SITE_IDS) expect(CAPABILITY_IDS).toContain(id);
|
||||||
expect(capabilitySpec("site.list")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" });
|
expect(capabilitySpec("site.list")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" });
|
||||||
expect(capabilitySpec("site.user_data")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" });
|
expect(capabilitySpec("site.user_data")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" });
|
||||||
|
|||||||
Reference in new issue
Block a user