Skip to content

Commit

Permalink
lint and failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Oct 10, 2024
1 parent 1b6bff5 commit 4ff6f89
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('getRunCurrentModulesInfo', () => {
const result = getRunCurrentModulesInfo({
runRecord: null as any,
deckDef: mockDeckDef,
protocolAnalysis: mockProtocolAnalysis,
labwareDefinitionsByUri: {},
})

expect(result).toEqual([])
Expand All @@ -195,7 +195,7 @@ describe('getRunCurrentModulesInfo', () => {
const result = getRunCurrentModulesInfo({
runRecord: mockRunRecord,
deckDef: mockDeckDef,
protocolAnalysis: null,
labwareDefinitionsByUri: null,
})

expect(result).toEqual([])
Expand All @@ -205,7 +205,7 @@ describe('getRunCurrentModulesInfo', () => {
const result = getRunCurrentModulesInfo({
runRecord: mockRunRecord,
deckDef: mockDeckDef,
protocolAnalysis: mockProtocolAnalysis,
labwareDefinitionsByUri: {} as any,
})

expect(result).toEqual([
Expand All @@ -226,7 +226,7 @@ describe('getRunCurrentModulesInfo', () => {
data: { modules: [mockModule], labware: [] },
},
deckDef: mockDeckDef,
protocolAnalysis: mockProtocolAnalysis,
labwareDefinitionsByUri: {},
})
expect(result).toEqual([
{
Expand All @@ -245,7 +245,7 @@ describe('getRunCurrentModulesInfo', () => {
const result = getRunCurrentModulesInfo({
runRecord: mockRunRecord,
deckDef: mockDeckDef,
protocolAnalysis: mockProtocolAnalysis,
labwareDefinitionsByUri: null,
})
expect(result).toEqual([])
})
Expand All @@ -270,7 +270,7 @@ describe('getRunCurrentLabwareInfo', () => {
it('should return an empty array if runRecord is null', () => {
const result = getRunCurrentLabwareInfo({
runRecord: undefined,
protocolAnalysis: {} as any,
labwareDefinitionsByUri: {} as any,
})

expect(result).toEqual([])
Expand All @@ -279,7 +279,7 @@ describe('getRunCurrentLabwareInfo', () => {
it('should return an empty array if protocolAnalysis is null', () => {
const result = getRunCurrentLabwareInfo({
runRecord: { data: { labware: [] } } as any,
protocolAnalysis: null,
labwareDefinitionsByUri: null,
})

expect(result).toEqual([])
Expand All @@ -293,7 +293,7 @@ describe('getRunCurrentLabwareInfo', () => {

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

expect(result).toEqual([
Expand Down

0 comments on commit 4ff6f89

Please sign in to comment.