Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): extend SectionList component for Generic Step Screen #8513

Merged
merged 12 commits into from
Oct 13, 2021
Prev Previous commit
Next Next commit
remove extra spaces
  • Loading branch information
jerader committed Oct 13, 2021
commit 870023b319f047a64dd6d1e008b1fdc62923eaa1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const LabwarePositionCheckStepDetail = (
width="60%"
justifyContent={JUSTIFY_CENTER}
marginTop={SPACING_4}
marginLeft="35%"
marginLeft="30%"
boxShadow="1px 1px 1px rgba(0, 0, 0, 0.25)"
borderRadius="4px"
backgroundColor={C_NEAR_WHITE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jest.mock('../hooks')
const mockGenericStepScreen = GenericStepScreen as jest.MockedFunction<
typeof GenericStepScreen
>

const mockIntroScreen = IntroScreen as jest.MockedFunction<typeof IntroScreen>
const mockUseSteps = useSteps as jest.MockedFunction<typeof useSteps>

Expand Down Expand Up @@ -54,14 +53,12 @@ describe('LabwarePositionCheck', () => {
} as LabwarePositionCheckStep,
])
mockIntroScreen.mockReturnValue(<div>Mock Intro Screen Component </div>)

mockGenericStepScreen.mockReturnValue(null)
})
afterEach(() => {
resetAllWhenMocks()
jest.resetAllMocks()
})

it('renders LabwarePositionCheck header and button and no components', () => {
const { getByRole } = render(props)
getByRole('heading', {
Expand Down