@@ -144,8 +144,7 @@ describe('getRunLabwareRenderInfo', () => {
144
144
)
145
145
const labwareInfo = res [ 0 ]
146
146
expect ( labwareInfo ) . toBeTruthy ( )
147
- expect ( labwareInfo . x ) . toEqual ( 0 ) // taken from deckDef fixture
148
- expect ( labwareInfo . y ) . toEqual ( 0 )
147
+ expect ( labwareInfo . labwareOrigin ) . toStrictEqual ( { x : 0 , y : 0 , z : 0 } ) // taken from deckDef fixture
149
148
expect ( labwareInfo . labwareDef . metadata . displayName ) . toEqual (
150
149
'NEST 96 Well Plate 100 µL PCR Full Skirt'
151
150
)
@@ -173,14 +172,16 @@ describe('getRunLabwareRenderInfo', () => {
173
172
labware => labware . labwareId === 'mockLabwareID3'
174
173
)
175
174
expect ( labwareInfo ) . toBeTruthy ( )
176
- expect ( labwareInfo ?. x ) . toEqual ( 0 )
177
- expect ( labwareInfo ?. y ) . toEqual (
178
- ot2DeckDefV5 . cornerOffsetFromOrigin [ 1 ] -
179
- getSchema2Dimensions ( mockLabwareDefinition ) . yDimension
180
- )
175
+ expect ( labwareInfo ?. labwareOrigin ) . toStrictEqual ( {
176
+ x : 0 ,
177
+ y :
178
+ ot2DeckDefV5 . cornerOffsetFromOrigin [ 1 ] -
179
+ getSchema2Dimensions ( mockLabwareDefinition ) . yDimension ,
180
+ z : 0 ,
181
+ } )
181
182
} )
182
183
183
- it ( 'defaults labware x, y coordinates to 0,0 if slot position not found in deck definition' , ( ) => {
184
+ it ( 'omits labware if slot position not found in deck definition' , ( ) => {
184
185
const mockBadSlotLabware = {
185
186
id : 'mockBadLabwareID' ,
186
187
loadName : 'nest_96_wellplate_100ul_pcr_full_skirt' ,
@@ -195,8 +196,7 @@ describe('getRunLabwareRenderInfo', () => {
195
196
ot2DeckDefV5 as any
196
197
)
197
198
198
- expect ( res [ 0 ] . x ) . toEqual ( 0 )
199
- expect ( res [ 0 ] . y ) . toEqual ( 0 )
199
+ expect ( res ) . toHaveLength ( 0 )
200
200
} )
201
201
} )
202
202
0 commit comments