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

Fix test #523

Merged
merged 12 commits into from
Aug 28, 2020
6 changes: 2 additions & 4 deletions libraries/core-react/src/Divider/Divider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Divider', () => {
expect(container.firstChild).toHaveStyleRule('margin-top', spacingMedium)
})
it('Sets backgroundColor to light according to color prop', () => {
const { container } = render(<Divider />)
const { container } = render(<Divider color="light" />)
expect(container.firstChild).toHaveStyleRule('background-color', light)
})
it('Sets backgroundColor to lighter according to color prop', () => {
Expand All @@ -41,9 +41,7 @@ describe('Divider', () => {
expect(container.firstChild).toHaveStyleRule('margin-top', spacingSmall)
})
it('Can extend the css for the component', () => {
const { container } = render(
<StyledDivider color="light" variant="small" />,
)
const { container } = render(<StyledDivider variant="small" />)
expect(container.firstChild).toHaveStyleRule('position', 'relative')
expect(container.firstChild).toHaveStyleRule('margin-top', spacingSmall)
})
Expand Down