1
1
import { beforeEach , describe , it , expect , vi } from 'vitest'
2
2
import { expectTimelineError } from '../__utils__/testMatchers'
3
- import { blowout } from '../commandCreators/atomic/blowout '
3
+ import { blowOutInWell } from '../commandCreators/atomic/blowOutInWell '
4
4
import {
5
5
makeContext ,
6
6
getInitialRobotStateStandard ,
@@ -16,7 +16,7 @@ import type { RobotState, InvariantContext } from '../types'
16
16
17
17
vi . mock ( '../utils/heaterShakerCollision' )
18
18
19
- describe ( 'blowout ' , ( ) => {
19
+ describe ( 'blowOutInWell ' , ( ) => {
20
20
let invariantContext : InvariantContext
21
21
let initialRobotState : RobotState
22
22
let robotStateWithTip : RobotState
@@ -39,7 +39,7 @@ describe('blowout', () => {
39
39
}
40
40
} )
41
41
it ( 'blowout with tip' , ( ) => {
42
- const result = blowout ( params , invariantContext , robotStateWithTip )
42
+ const result = blowOutInWell ( params , invariantContext , robotStateWithTip )
43
43
const res = getSuccessResult ( result )
44
44
expect ( res . commands ) . toEqual ( [
45
45
{
@@ -59,17 +59,20 @@ describe('blowout', () => {
59
59
} ,
60
60
} ,
61
61
] )
62
+ expect ( res . python ) . toBe (
63
+ 'mockPythonName.blow_out(mockPythonName["A1"].top(z=-1.3))'
64
+ )
62
65
} )
63
66
it ( 'blowout with invalid pipette ID should throw error' , ( ) => {
64
- const result = blowout (
67
+ const result = blowOutInWell (
65
68
{ ...params , pipetteId : 'badPipette' } ,
66
69
invariantContext ,
67
70
robotStateWithTip
68
71
)
69
72
expectTimelineError ( getErrorResult ( result ) . errors , 'PIPETTE_DOES_NOT_EXIST' )
70
73
} )
71
74
it ( 'blowout with invalid labware ID should throw error' , ( ) => {
72
- const result = blowout (
75
+ const result = blowOutInWell (
73
76
{ ...params , labwareId : 'badLabware' } ,
74
77
invariantContext ,
75
78
robotStateWithTip
@@ -81,7 +84,7 @@ describe('blowout', () => {
81
84
} )
82
85
} )
83
86
it ( 'blowout with no tip should throw error' , ( ) => {
84
- const result = blowout ( params , invariantContext , initialRobotState )
87
+ const result = blowOutInWell ( params , invariantContext , initialRobotState )
85
88
const res = getErrorResult ( result )
86
89
expect ( res . errors ) . toHaveLength ( 1 )
87
90
expect ( res . errors [ 0 ] ) . toMatchObject ( {
@@ -92,7 +95,7 @@ describe('blowout', () => {
92
95
initialRobotState = getInitialRobotStateWithOffDeckLabwareStandard (
93
96
invariantContext
94
97
)
95
- const result = blowout (
98
+ const result = blowOutInWell (
96
99
{
97
100
flowRate : 10 ,
98
101
wellLocation : {
0 commit comments