From 0b977afff347b0b2d20675d076123991735a7940 Mon Sep 17 00:00:00 2001 From: koji Date: Thu, 17 Oct 2024 18:08:47 -0400 Subject: [PATCH] fix(protocol-designer): add Eppendorf to removeOpentronsPhrases (#16470) * fix(protocol-designer): add Eppendorf to removeOpentronsPhrases --- protocol-designer/src/utils/__tests__/utils.test.ts | 6 ++++++ protocol-designer/src/utils/index.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/protocol-designer/src/utils/__tests__/utils.test.ts b/protocol-designer/src/utils/__tests__/utils.test.ts index 460722cdba7..a389f259232 100644 --- a/protocol-designer/src/utils/__tests__/utils.test.ts +++ b/protocol-designer/src/utils/__tests__/utils.test.ts @@ -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) + }) }) diff --git a/protocol-designer/src/utils/index.ts b/protocol-designer/src/utils/index.ts index 73c0a3291fc..8f4c9397066 100644 --- a/protocol-designer/src/utils/index.ts +++ b/protocol-designer/src/utils/index.ts @@ -267,6 +267,7 @@ export const removeOpentronsPhrases = (input: string): string => { 'Opentrons OT-2 96', '\\(Retired\\)', '96', + 'Eppendorf', ] const updatedText = phrasesToRemove