Skip to content

Commit a479332

Browse files
committed
testin & arrow func
1 parent b359c53 commit a479332

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

components/src/organisms/CommandText/useCommandTextString/utils/commandText/__tests__/getPipettingCommandText.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('getPipettingCommandText', () => {
9191

9292
render(command)
9393
screen.getByText(
94-
/Aspirating 100 µL from well A1 of Test Labware in Slot 1 at 150 µL\/sec/
94+
/Aspirating 100.00 µL from well A1 of Test Labware in Slot 1 at 150.00 µL\/sec/
9595
)
9696
})
9797

@@ -109,7 +109,7 @@ describe('getPipettingCommandText', () => {
109109

110110
render(command)
111111
screen.getByText(
112-
/Dispensing 100 µL into well A1 of Test Labware in Slot 1 at 150 µL\/sec/
112+
/Dispensing 100.00 µL into well A1 of Test Labware in Slot 1 at 150.00 µL\/sec/
113113
)
114114
})
115115

@@ -128,7 +128,7 @@ describe('getPipettingCommandText', () => {
128128

129129
render(command)
130130
screen.getByText(
131-
/Dispensing 100 µL into well A1 of Test Labware in Slot 1 at 150 µL\/sec and pushing out 10 µL/
131+
/Dispensing 100.00 µL into well A1 of Test Labware in Slot 1 at 150.00 µL\/sec and pushing out 10.00 µL/
132132
)
133133
})
134134

components/src/organisms/CommandText/useCommandTextString/utils/commandText/getPipettingCommandText.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,11 @@ export const getPipettingCommandText = ({
195195
const formatCmdParamDecimal = (
196196
command: RunTimeCommand | null | undefined,
197197
paramName: string
198-
): string | null => {
199-
return command?.params &&
200-
paramName in command.params &&
201-
command.params[paramName as keyof typeof command.params] != null
198+
): string | null =>
199+
command?.params &&
200+
paramName in command.params &&
201+
command.params[paramName as keyof typeof command.params] != null
202202
? Number(command.params[paramName as keyof typeof command.params]).toFixed(
203203
2
204204
)
205205
: null
206-
}

0 commit comments

Comments
 (0)