Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Dec 13, 2024
1 parent 9b88d76 commit 8c96b57
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { getEnableHotKeysDisplay } from '../../../../feature-flags/selectors'
import { DeckSetupContainer } from '../../DeckSetup'
import { OffDeck } from '../../Offdeck'
import { SubStepsToolbox } from '../Timeline'

Check failure on line 22 in protocol-designer/src/pages/Designer/ProtocolSteps/__tests__/ProtocolSteps.test.tsx

View workflow job for this annotation

GitHub Actions / js checks

Module '"../Timeline"' has no exported member 'SubStepsToolbox'.

Check failure on line 22 in protocol-designer/src/pages/Designer/ProtocolSteps/__tests__/ProtocolSteps.test.tsx

View workflow job for this annotation

GitHub Actions / js checks

Module '"../Timeline"' has no exported member 'SubStepsToolbox'.
import { DraggableSidebar } from '../DraggableSidebar'
import { ProtocolSteps } from '..'

import type { SavedStepFormState } from '../../../../step-forms'
Expand All @@ -32,6 +33,7 @@ vi.mock('../StepForm')
vi.mock('../../DeckSetup')
vi.mock('../StepSummary.tsx')
vi.mock('../Timeline')
vi.mock('../DraggableSidebar')
vi.mock('../../../../feature-flags/selectors')
vi.mock('../../../../file-data/selectors')
vi.mock('../../../../organisms/Alerts')
Expand Down Expand Up @@ -65,7 +67,9 @@ describe('ProtocolSteps', () => {
timeline: [],
errors: [],
})
// vi.mocked(TimelineToolbox).mockReturnValue(<div>mock TimelineToolbox</div>)
vi.mocked(DraggableSidebar).mockReturnValue(
<div>mock DraggableSidebar</div>
)
vi.mocked(DeckSetupContainer).mockReturnValue(
<div>mock DeckSetupContainer</div>
)
Expand All @@ -85,7 +89,7 @@ describe('ProtocolSteps', () => {

it('renders each component in ProtocolSteps', () => {
render()
// screen.getByText('mock TimelineToolbox')
screen.getByText('mock DraggableSidebar')
screen.getByText('mock DeckSetupContainer')
})

Expand Down

0 comments on commit 8c96b57

Please sign in to comment.