test(todo): isolate projection assertions
This commit is contained in:
parent
3c06c66ac4
commit
c4226840f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue