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.