Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Mar 26, 2024
1 parent 680d7f8 commit 829804d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/src/organisms/Devices/InstrumentsAndModules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function InstrumentsAndModules({
flexDirection={DIRECTION_COLUMN}
gridGap={SPACING.spacing8}
>
{!isFlex && (
{!isFlex ? (
<PipetteCard
pipetteId={attachedPipettes.right?.id}
pipetteModelSpecs={
Expand All @@ -240,7 +240,7 @@ export function InstrumentsAndModules({
isRunActive={currentRunId != null && isRunRunning}
isEstopNotDisengaged={isEstopNotDisengaged}
/>
)}
) : null}
{isFlex && !is96ChannelAttached ? (
<FlexPipetteCard
attachedPipette={attachedRightPipette}
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function FlexPipetteCard({
const handleChoosePipette: React.MouseEventHandler<HTMLButtonElement> = () => {
setShowChoosePipette(true)
}
const handleAttach = () => {
const handleAttach = (): void => {
setShowChoosePipette(false)
handleLaunchPipetteWizardFlows(FLOWS.ATTACH)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { i18n } from '../../../../i18n'
import { getHasCalibrationBlock } from '../../../../redux/config'
import { useDispatchApiRequest } from '../../../../redux/robot-api'
import { PipetteOverflowMenu } from '../PipetteOverflowMenu'
import { AboutPipetteSlideout } from '../AboutPipetteSlideout'
import { PipetteCard } from '..'

import {
Expand All @@ -22,7 +21,6 @@ import type { DispatchApiRequestType } from '../../../../redux/robot-api'

vi.mock('../PipetteOverflowMenu')
vi.mock('../../../../redux/config')
vi.mock('../AboutPipetteSlideout')
vi.mock('../../../../redux/robot-api')
vi.mock('@opentrons/react-api-client')
vi.mock('../../../../redux/pipettes')
Expand All @@ -35,12 +33,10 @@ const render = (props: React.ComponentProps<typeof PipetteCard>) => {

const mockRobotName = 'mockRobotName'
describe('PipetteCard', () => {
let startWizard: any
let dispatchApiRequest: DispatchApiRequestType
let props: React.ComponentProps<typeof PipetteCard>

beforeEach(() => {
startWizard = vi.fn()
dispatchApiRequest = vi.fn()
props = {
pipetteModelSpecs: mockLeftSpecs,
Expand All @@ -50,9 +46,6 @@ describe('PipetteCard', () => {
isRunActive: false,
isEstopNotDisengaged: false,
}
vi.mocked(AboutPipetteSlideout).mockReturnValue(
<div>mock about slideout</div>
)
vi.mocked(PipetteOverflowMenu).mockReturnValue(
<div>mock pipette overflow menu</div>
)
Expand Down

0 comments on commit 829804d

Please sign in to comment.