Skip to content

Commit

Permalink
linting and StyledText test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Jul 18, 2024
1 parent 2b10847 commit d47f4c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ function ActionButton(props: ActionButtonProps): JSX.Element {
const [showIsShakingModal, setShowIsShakingModal] = React.useState(false)
const isSetupComplete =
isCalibrationComplete &&
isModuleCalibrationComplete && missingModuleIds.length === 0
isModuleCalibrationComplete &&
missingModuleIds.length === 0
const isRobotOnWrongVersionOfSoftware = ['upgrade', 'downgrade'].includes(
useSelector((state: State) => {
return getRobotUpdateDisplayInfo(state, robotName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function ErrorRecoveryWizard(
export function ErrorRecoveryComponent(
props: RecoveryContentProps
): JSX.Element {
const { recoveryMap, hasLaunchedRecovery, isDoorOpen, isOnDevice } = props
const { recoveryMap, isDoorOpen, isOnDevice } = props
const { route, step } = recoveryMap
const { t } = useTranslation('error_recovery')
const { showModal, toggleModal } = useErrorDetailsModal()
Expand Down
4 changes: 2 additions & 2 deletions components/src/atoms/StyledText/__tests__/StyledText.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ describe('StyledText', () => {
children: 'h3Bold',
}
render(props)
expect(screen.getByText('h3Bold')).toHaveStyle(
expect(screen.queryAllByText('h3Bold')[0]).toHaveStyle(
`fontSize: ${TYPOGRAPHY.fontSize32}`
)
expect(screen.getByText('h3Bold')).toHaveStyle(
Expand All @@ -243,7 +243,7 @@ describe('StyledText', () => {
children: 'h4Bold',
}
render(props)
expect(screen.getByText('h4Bold')).toHaveStyle(
expect(screen.queryAllByText('h4Bold')[0]).toHaveStyle(
`fontSize: ${TYPOGRAPHY.fontSize28}`
)
expect(screen.getByText('h4Bold')).toHaveStyle(
Expand Down

0 comments on commit d47f4c3

Please sign in to comment.