fix: keep human and team aliases inside TCS root resolver
This commit is contained in:
parent
c78e90e1e4
commit
1f7295b120
2 changed files with 3 additions and 23 deletions
|
|
@ -6,7 +6,6 @@ import test from 'node:test';
|
|||
const root = path.resolve(import.meta.dirname, '..');
|
||||
const map = JSON.parse(fs.readFileSync(path.join(root, 'routing/tcs-mother-root-dynamic-navigation-map.json')));
|
||||
const fixed = JSON.parse(fs.readFileSync(path.join(root, 'routing/fixed-world-object-number-map.json')));
|
||||
const aliases = JSON.parse(fs.readFileSync(path.join(root, 'identity/subject-id-alias-map.json')));
|
||||
const lighthouse = JSON.parse(fs.readFileSync(path.join(root, 'routing/lighthouse-path-registry.json')));
|
||||
const domains = JSON.parse(fs.readFileSync(path.join(root, 'routing/five-domain-living-persona-os-map.json')));
|
||||
|
||||
|
|
@ -30,9 +29,9 @@ test('private human, team body and public certificate use three distinct routes'
|
|||
});
|
||||
|
||||
test('typed aliases never revive conflicting screenshot or national simulation numbers', () => {
|
||||
const team = aliases.mappings.find(item => item.canonical_id === 'TCS-0002∞');
|
||||
assert.deepEqual(team.aliases, ['TCS-0002']);
|
||||
assert.equal(team.semantic_lock, 'TEAM_BODY_NOT_BINGSHUO_NOT_YAOMING');
|
||||
const team = map.aliases.find(item => item.canonical_id === 'TCS-0002∞');
|
||||
assert.equal(team.requested, 'TCS-0002');
|
||||
assert.equal(team.object_kind, 'GUANGHU_HUMAN_TEAM_BODY_ROOT');
|
||||
for (const id of ['GHCP-TCS-CN-LAN-2025', 'WRLD-REG-0001', 'GLW-SYS-0001', 'GEN5-CORE-BB-YM', 'CN-LANG-CORE-GOV-0001']) {
|
||||
assert.equal(map.history_only_numbers.some(item => item.id === id), true, id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue