Skip to content

Commit

Permalink
fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Jul 24, 2024
1 parent 48972c1 commit 2172050
Showing 1 changed file with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('useRecoveryCommands', () => {
;([
'aspirateInPlace',
'dispenseInPlace',
'blowoutInPlace',
'blowOutInPlace',
'dropTipInPlace',
'prepareToAspirate',
] as const).forEach(inPlaceCommandType => {
Expand All @@ -144,6 +144,8 @@ describe('useRecoveryCommands', () => {
},
error: {
errorType: 'overpressure',
errorCode: '3006',
isDefined: true,
errorInfo: {
retryLocation: [1, 2, 3],
},
Expand All @@ -157,19 +159,23 @@ describe('useRecoveryCommands', () => {
await act(async () => {
await result.current.retryFailedCommand()
})
expect(mockChainRunCommands).toHaveBeenCalledWith([
{
commandType: 'moveToCoordinates',
params: {
pipetteId: 'mock-pipette-id',
coordinates: { x: 1, y: 2, z: 3 },
expect(mockChainRunCommands).toHaveBeenLastCalledWith(
[
{
commandType: 'moveToCoordinates',
intent: 'fixit',
params: {
pipetteId: 'mock-pipette-id',
coordinates: { x: 1, y: 2, z: 3 },
},
},
},
{
commandType: inPlaceCommandType,
params: { pipetteId: 'mock-pipette-id' },
},
])
{
commandType: inPlaceCommandType,
params: { pipetteId: 'mock-pipette-id' },
},
],
false
)
})
})

Expand Down

0 comments on commit 2172050

Please sign in to comment.