test(goal): cover projection teardown access
This commit is contained in:
parent
fddad3a236
commit
16c8cf30ed
1 changed files with 1 additions and 0 deletions
|
|
@ -240,6 +240,7 @@ describe('GoalService creation and replay', () => {
|
|||
await fiber.dispose()
|
||||
expect(ctx.get('goals')).toBeUndefined()
|
||||
expect(ctx.sessionProjections.stateOf(stub.session, 'goal')).toBeUndefined()
|
||||
expect(() => first.get(stub.agent)).toThrow('goal projection is not registered')
|
||||
|
||||
await ctx.plugin(GoalService)
|
||||
expect(ctx.goals).not.toBe(first)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue