统一铸渊多宿主共享人格路径
This commit is contained in:
parent
0486595b56
commit
cf5dd99cf5
11 changed files with 522 additions and 55 deletions
|
|
@ -107,24 +107,20 @@ test("Git snapshot store follows main atomically and retains the last known-good
|
|||
}
|
||||
});
|
||||
|
||||
test("repository map exposes only the three current code-channel repositories", () => {
|
||||
test("repository map exposes the four current code-channel repositories", () => {
|
||||
const map = loadMap();
|
||||
const expectedCodes = ["REPO-012", "REPO-014", "REPO-015"];
|
||||
const expectedCodes = ["REPO-012", "REPO-014", "REPO-015", "REPO-016"];
|
||||
assert.deepEqual(map.repositories.map(item => item.code), expectedCodes);
|
||||
assert.equal(new Set(map.repositories.map(item => item.code)).size, expectedCodes.length);
|
||||
for (const item of map.repositories) {
|
||||
assert.match(item.primary.url, /^https:\/\/guanghulab\.com\/code\//);
|
||||
assert.match(item.primary.url, /^https:\/\/(guanghulab\.com|guanghu\.chat)\/code\//);
|
||||
}
|
||||
assert.equal(map.historical_repositories.length, 11);
|
||||
assert.ok(map.historical_repositories.slice(0, 8).every(item => item.state.includes("HISTORICAL")));
|
||||
assert.deepEqual(
|
||||
map.historical_repositories.slice(8).map(item => [item.code, item.state]),
|
||||
[
|
||||
["REPO-009", "CURRENT_PRIVATE_PERSONA_HISTORY_AND_DAILY_ROLE_MEMORY_PENDING_DEPLOYMENT"],
|
||||
["REPO-010", "CURRENT_PRIVATE_PERSONA_HISTORY_AND_DAILY_ROLE_MEMORY_PENDING_DEPLOYMENT"],
|
||||
["REPO-011", "CURRENT_PRIVATE_PERSONA_HISTORY_AND_DAILY_ROLE_MEMORY_PENDING_DEPLOYMENT"],
|
||||
],
|
||||
);
|
||||
assert.equal(map.historical_repositories.length, 8);
|
||||
assert.ok(map.historical_repositories.every(item => item.state.includes("HISTORICAL")));
|
||||
assert.deepEqual(map.historical_repositories.map(item => item.code), [
|
||||
"REPO-001", "REPO-002", "REPO-003", "REPO-004",
|
||||
"REPO-005", "REPO-006", "REPO-007", "REPO-008",
|
||||
]);
|
||||
});
|
||||
|
||||
test("Chinese language-world query resolves the Fifth Domain primary", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue