[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
14
server-tools/module-registry/registry.test.js
Normal file
14
server-tools/module-registry/registry.test.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
const test = require("node:test");
|
||||
const assert = require("node:assert/strict");
|
||||
const path = require("node:path");
|
||||
const { buildRegistry } = require("./registry");
|
||||
|
||||
test("builds unique MEM/MOD/RUN registry from repository manifests", () => {
|
||||
const root = path.resolve(__dirname, "../..");
|
||||
const registry = buildRegistry(root);
|
||||
assert.equal(registry.schema, "ZL-MODULE-REGISTRY-1");
|
||||
assert.ok(registry.modules.some(m => m.module_id === "ZL-MOD-MODULE-REGISTRY-001"));
|
||||
assert.ok(registry.modules.some(m => m.module_id === "ZL-MOD-SERVER-MIRROR-001"));
|
||||
assert.equal(new Set(registry.modules.map(m => m.module_id)).size, registry.modules.length);
|
||||
});
|
||||
Loading…
Reference in a new issue