Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: pass operation guards through catalog merge test fixture

[._.]/ Adam Eivya5204f53f32e
diff --git a/server/services/catalogDB.merge.db.test.js b/server/services/catalogDB.merge.db.test.js
index 337e40f6bc..202bebbf46 100644
--- a/server/services/catalogDB.merge.db.test.js
+++ b/server/services/catalogDB.merge.db.test.js
@@ -166,10 +166,13 @@ describe.skipIf(!ready)('recoverable local catalog merge', () => {
expect((await getIngredient(input.survivorId)).payload.description).toBe('Original biography');
const updated = await getIngredient(input.sourceId);
let projected;
- const stats = await projectToCanon(input.sourceId, updated, { updateUniverse: async (_id, mutate) => {
+ const stats = await projectToCanon(input.sourceId, updated, { updateUniverse: async (_id, mutate, options) => {
projected = await mutate({ characters: [oldEntry] });
// The synchronous echo cannot race the source alias against the survivor.
- expect(await projectToCatalog('example-universe', projected)).toEqual({ written: 0, skipped: 1 });
+ expect(await projectToCatalog('example-universe', projected, {
+ guardToken: options.canonProjectionGuard,
+ guardIdentityIds: options.canonProjectionIdentityIds,
+ })).toEqual({ written: 0, skipped: 1 });
return projected;
} });
expect(stats.written).toBe(1);