Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Oct 10, 2024
1 parent 4ff6f89 commit c7d029f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ describe('getRunCurrentModulesInfo', () => {
},
} as any
const mockDeckDef = {} as any
const mockProtocolAnalysis = {} as any

beforeEach(() => {
vi.mocked(getLoadedLabwareDefinitionsByUri).mockReturnValue({
Expand Down Expand Up @@ -205,7 +204,9 @@ describe('getRunCurrentModulesInfo', () => {
const result = getRunCurrentModulesInfo({
runRecord: mockRunRecord,
deckDef: mockDeckDef,
labwareDefinitionsByUri: {} as any,
labwareDefinitionsByUri: {
'opentrons/opentrons_96_pcr_adapter/1': 'MOCK_LW_DEF',
} as any,
})

expect(result).toEqual([
Expand Down Expand Up @@ -293,7 +294,9 @@ describe('getRunCurrentLabwareInfo', () => {

const result = getRunCurrentLabwareInfo({
runRecord: { data: { labware: [mockPickUpTipLwSlotName] } } as any,
labwareDefinitionsByUri: {[mockPickUpTipLabware.definitionUri]: mockLabwareDef},
labwareDefinitionsByUri: {
[mockPickUpTipLabware.definitionUri]: mockLabwareDef,
},
})

expect(result).toEqual([
Expand Down

0 comments on commit c7d029f

Please sign in to comment.