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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: cover independent bible work writes (#6944)
[._.]/ Adam Eivydcd0acd1ad6c
diff --git a/server/lib/storyBible.test.js b/server/lib/storyBible.test.jsindex fe3ed6cfb4..f7f44c4089 100644--- a/server/lib/storyBible.test.js+++ b/server/lib/storyBible.test.js@@ -1558,6 +1558,23 @@ describe('storyBible — createBibleStore (single-primary-field kind)', () => {expect(entries.find((entry) => entry.id === aria.id)?.role).toBe('antagonist');expect(entries.find((entry) => entry.id === voss.id)?.role).toBe('protagonist');});++ it('allows writes for different works to proceed independently', async () => {+ const store = characterStore();+ const otherWorkId = 'wr-work-bbbbbbbb-cccc-dddd-eeee-ffffffffffff';+ const [aria, voss] = await Promise.all([+ store.create(WORK_ID, { name: 'Aria' }),+ store.create(otherWorkId, { name: 'Voss' }),+ ]);++ await Promise.all([+ store.update(WORK_ID, aria.id, { role: 'protagonist' }),+ store.update(otherWorkId, voss.id, { role: 'antagonist' }),+ ]);++ expect((await store.list(WORK_ID))[0].role).toBe('protagonist');+ expect((await store.list(otherWorkId))[0].role).toBe('antagonist');+ });});describe('storyBible — createBibleStore (multi-primary-field kind / settings)', () => {