Skip to content

Commit

Permalink
test: update UseCase test cases with default option invalidateCache t…
Browse files Browse the repository at this point in the history
…o false
  • Loading branch information
achamorro-dev committed Nov 28, 2022
1 parent 79b5e0d commit 0ff0cfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/arch/src/use-case/use-case.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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
)
})
})

0 comments on commit 0ff0cfd

Please sign in to comment.