From 0ff0cfd6ff561101d7b8c79ecc145129a3916330 Mon Sep 17 00:00:00 2001 From: Alberto Chamorro Date: Mon, 28 Nov 2022 14:20:29 +0100 Subject: [PATCH] test: update UseCase test cases with default option invalidateCache to false --- packages/arch/src/use-case/use-case.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/arch/src/use-case/use-case.spec.ts b/packages/arch/src/use-case/use-case.spec.ts index b77a9d6..794e800 100644 --- a/packages/arch/src/use-case/use-case.spec.ts +++ b/packages/arch/src/use-case/use-case.spec.ts @@ -16,7 +16,7 @@ describe('UseCase', () => { mockUseCase.execute(42) - expect(Runner.run).toBeCalledWith(mockUseCase, { inlineError: false }, 42) + expect(Runner.run).toBeCalledWith(mockUseCase, { inlineError: false, invalidateCache: false }, 42) }) it('should subscribe', async () => { @@ -80,6 +80,10 @@ describe('UseCase', () => { mockUseCase.execute(undefined, { foo: 'bar' } as ExecutionOptions & { foo: string }) - expect(Runner.run).toBeCalledWith(mockUseCase, { inlineError: false, foo: 'bar' }, undefined) + expect(Runner.run).toBeCalledWith( + mockUseCase, + { inlineError: false, invalidateCache: false, foo: 'bar' }, + undefined + ) }) })