Skip to content

Commit

Permalink
fix(protocol-designer): add Eppendorf to removeOpentronsPhrases (#16470)
Browse files Browse the repository at this point in the history
* fix(protocol-designer): add Eppendorf to removeOpentronsPhrases
  • Loading branch information
koji authored and TamarZanzouri committed Oct 18, 2024
1 parent de72890 commit 0b977af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions protocol-designer/src/utils/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ describe('removeOpentronsPhrases', () => {
const expectedOutput = ''
expect(removeOpentronsPhrases(input)).toBe(expectedOutput)
})

it('should remove "Eppendorf" from input ', () => {
const input = 'Eppendorf epT.I.P.S. Tip Rack is long'
const expectedOutput = 'epT.I.P.S. Tip Rack is long'
expect(removeOpentronsPhrases(input)).toBe(expectedOutput)
})
})
1 change: 1 addition & 0 deletions protocol-designer/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export const removeOpentronsPhrases = (input: string): string => {
'Opentrons OT-2 96',
'\\(Retired\\)',
'96',
'Eppendorf',
]

const updatedText = phrasesToRemove
Expand Down

0 comments on commit 0b977af

Please sign in to comment.