Skip to content

Commit

Permalink
fix step-generation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Aug 1, 2023
1 parent 1b3ff7a commit 68d6373
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions step-generation/src/__tests__/distribute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ describe('tip handling for multiple distribute chunks', () => {
destWells: ['A2', 'A3', 'A4', 'A5'],
changeTip: 'always',
volume: 150,
tipRack: '123:tiprack1Id',
} as DistributeArgs

const result = distribute(
Expand Down
5 changes: 3 additions & 2 deletions step-generation/src/__tests__/replaceTip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ describe('replaceTip', () => {
tipState: {
tipracks: {
[tiprack1Id]: getTiprackTipstate(false),
[tiprack1Id]: getTiprackTipstate(true),
},
pipettes: {
p300SingleId: false,
Expand All @@ -119,15 +120,15 @@ describe('replaceTip', () => {
const result = replaceTip(
{
pipette: p300SingleId,
tipRack: tiprack2Id,
tipRack: tiprack1Id,
},
invariantContext,
initialTestRobotState
)
const res = getSuccessResult(result)
expect(res.commands).toEqual([
pickUpTipHelper('A1', {
labwareId: tiprack2Id,
labwareId: tiprack1Id,
}),
])
})
Expand Down
1 change: 0 additions & 1 deletion step-generation/src/robotStateSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export function getNextTiprack(
invariantContext,
robotState,
})
console.log('nextTip', nextTip)
if (firstAvailableTiprack && nextTip) {
return {
tiprackId: firstAvailableTiprack,
Expand Down

0 comments on commit 68d6373

Please sign in to comment.