Skip to content

Commit

Permalink
Remove testing stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
wenche committed Aug 28, 2020
1 parent 4188476 commit a824fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/core-react/src/Divider/Divider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ afterEach(cleanup)

describe('Divider', () => {
it('Has medium colour and medium spacing as default', () => {
const { container } = render(<Divider color="light" />)
const { container } = render(<Divider />)
expect(container.firstChild).toHaveStyleRule('background-color', medium)
expect(container.firstChild).toHaveStyleRule('margin-top', spacingMedium)
})
it('Sets backgroundColor to light according to color prop', () => {
const { container } = render(<Divider color="light" />)
const { container } = render(<Divider />)
expect(container.firstChild).toHaveStyleRule('background-color', light)
})
it('Sets backgroundColor to lighter according to color prop', () => {
const { container } = render(<Divider color="lighter" />)
expect(container.firstChild).toHaveStyleRule('background-color', lighter)
})
it('Sets topMargin to small according to variant prop', () => {
const { container } = render(<Divider color="light" variant="small" />)
const { container } = render(<Divider variant="small" />)
expect(container.firstChild).toHaveStyleRule('margin-top', spacingSmall)
})
it('Can extend the css for the component', () => {
Expand Down

0 comments on commit a824fb3

Please sign in to comment.