Skip to content

Commit

Permalink
fix a wrong mock
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 5, 2024
1 parent 26a0198 commit 3a71a97
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ describe('SetupLabwarePositionCheck', () => {
expect(mockLaunchLPC).toHaveBeenCalled()
})
it('should render a disabled LPC button when disabled LPC reason exists', () => {
when(vi.mocked(useUnmatchedModulesForProtocol))
.calledWith(RUN_ID)
.thenReturn(true)
when(vi.mocked(useRunHasStarted)).calledWith(RUN_ID).thenReturn(true)
vi.mocked(useLPCDisabledReason).mockReturnValue(DISABLED_REASON)
render()
const button = screen.getByRole('button', {
Expand Down

0 comments on commit 3a71a97

Please sign in to comment.