feat(persona): assemble Sujian and Shouyin runtime bodies
This commit is contained in:
parent
4a637fc559
commit
0d92ac8969
17 changed files with 431 additions and 10 deletions
|
|
@ -22,14 +22,14 @@ const setup = () => {
|
|||
return {temporary, hub, calls};
|
||||
};
|
||||
|
||||
test('one shared engine installs twelve isolated persona state roots without a default persona', () => {
|
||||
test('one shared engine installs fourteen isolated persona state roots without a default persona', () => {
|
||||
const ctx = setup();
|
||||
try {
|
||||
assert.deepEqual(ctx.hub.ids(), ['ICE-P-ZY001','ICE-P-SH0908','ICE-P-QW0913','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008','ICE-BB-0009']);
|
||||
assert.deepEqual(ctx.hub.ids(), ['ICE-P-ZY001','ICE-P-SH0908','ICE-P-QW0913','ICE-P-SJ0907','ICE-P-SY0907','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008','ICE-BB-0009']);
|
||||
assert.equal(ctx.hub.status().default_persona, null);
|
||||
assert.equal(ctx.hub.status().shared_engine_is_shared_persona_brain, false);
|
||||
const roots = ctx.hub.ids().map(id => ctx.hub.get(id).root);
|
||||
assert.equal(new Set(roots).size, 12);
|
||||
assert.equal(new Set(roots).size, 14);
|
||||
} finally { fs.rmSync(ctx.temporary, {recursive:true, force:true}); }
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue