From c4226840f4b2d493f3c812b3ade21d902c571dc6 Mon Sep 17 00:00:00 2001 From: _Kerman Date: Thu, 13 Aug 2026 14:11:21 +0800 Subject: [PATCH] test(todo): isolate projection assertions --- packages/todo/tool-todo/tests/projection.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/todo/tool-todo/tests/projection.spec.ts b/packages/todo/tool-todo/tests/projection.spec.ts index 03bb3ce4da..ff374e641e 100644 --- a/packages/todo/tool-todo/tests/projection.spec.ts +++ b/packages/todo/tool-todo/tests/projection.spec.ts @@ -70,7 +70,7 @@ describe('todos projection provider', () => { const bench = await harness(true) seedMessage(bench.session) const projections = await bench.tailProjections() - expect(projections?.values).toEqual({ todos: null }) + expect(projections?.values.todos).toBeNull() expect(projections?.asOfSeq).toBe(bench.session.seq - 1) }) @@ -117,7 +117,7 @@ describe('todos projection provider', () => { const bench = await harness(false) seedMessage(bench.session) const fiber = await bench.ctx.plugin(ToolTodo, { allowParallelInProgress: true }) - expect((await bench.tailProjections())?.values).toEqual({ todos: null }) + expect((await bench.tailProjections())?.values.todos).toBeNull() await fiber.dispose() expect('todos' in ((await bench.tailProjections())?.values ?? {})).toBe(false) })