Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Feb 15, 2024
1 parent 01fc7d7 commit f347908
Showing 1 changed file with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,13 @@ const mockSingleMountPipetteAttached = {
}

describe('getPipetteWizardStepsForProtocol', () => {
it('returns an empty array of info when the attached pipette matches required pipette', () => {
const mockFlowSteps = [] as PipetteWizardStep[]
expect(
getPipetteWizardStepsForProtocol(
mockSingleMountPipetteAttached,
[
{
id: '123',
pipetteName: 'p1000_single_flex',
mount: 'left',
},
],
LEFT
)
).toStrictEqual(mockFlowSteps)
})
it('returns an empty array when there is no pipette attached and no pipette is needed', () => {
const mockFlowSteps = [] as PipetteWizardStep[]
const mockFlowSteps = null as PipetteWizardStep[] | null
expect(
getPipetteWizardStepsForProtocol({ left: null, right: null }, [], LEFT)
).toStrictEqual(mockFlowSteps)
})
it('returns the calibration flow only when correct pipette is attached but there is no pip cal data', () => {
it('returns the calibration flow only when correct pipette is attached even if htere is pip cal data', () => {
const mockFlowSteps = [
{
section: SECTIONS.BEFORE_BEGINNING,
Expand All @@ -71,7 +55,6 @@ describe('getPipetteWizardStepsForProtocol', () => {
left: null,
right: {
...mockAttachedPipetteInformation,
data: { calibratedOffset: undefined as any },
} as any,
},
[{ id: '123', pipetteName: 'p1000_single_flex', mount: 'right' }],
Expand Down

0 comments on commit f347908

Please sign in to comment.