From 92d9e138684cefc066ad312ee17f2c158017fd2a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 20:20:54 +0200 Subject: [PATCH] Test: a string-named store read is typed as a note in the assertion The handle named by a bare schema id yields unknown; 3c9 test code read .body off it and did not compile. Co-Authored-By: Claude Opus 5.5 --- packages/cultmesh-ts/test/cultmesh.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cultmesh-ts/test/cultmesh.test.ts b/packages/cultmesh-ts/test/cultmesh.test.ts index 89d7203b..99d1adc2 100644 --- a/packages/cultmesh-ts/test/cultmesh.test.ts +++ b/packages/cultmesh-ts/test/cultmesh.test.ts @@ -392,7 +392,7 @@ test("CultMesh TS store document handles read only records under an id their def compatibleSchemaIds: ["cultmesh.note.v0"], schema: noteDocument.schema, }); - assert.equal((await CultMesh.documentFromStore(storeOf(foreign, own), "cultmesh.note.v0").latest()).body, "own id"); + assert.equal(((await CultMesh.documentFromStore(storeOf(foreign, own), "cultmesh.note.v0").latest()) as Note).body, "own id"); assert.equal((await CultMesh.documentFromStore(storeOf(foreign, own), renamed).latest()).body, "own id"); await assert.rejects(CultMesh.documentFromStore(storeOf(foreign), renamed).latest(), /did not contain schema/); // A record under the definition's own id wins over one under an id it lists, wherever each sits in the store.