[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
5
server-tools/server-state-mirror/mirror.test.js
Normal file
5
server-tools/server-state-mirror/mirror.test.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
const test=require("node:test"),assert=require("node:assert/strict"),path=require("node:path");
|
||||
const {capture,redact}=require("./mirror");
|
||||
test("redacts secrets and email",()=>{const v=redact({api_token:"abc",email:"person@example.com"});assert.equal(v.api_token,"[REDACTED]");assert.equal(v.email,"[REDACTED_EMAIL]");});
|
||||
test("captures server and module registry",()=>{const root=path.resolve(__dirname,"../..");const s=capture({repoRoot:root,repoPaths:[root]});assert.equal(s.schema,"ZL-SERVER-MIRROR-1");assert.ok(s.registry.module_count>=3);assert.ok(s.repositories[0].commit);});
|
||||
Loading…
Reference in a new issue