Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(test): update Select tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korhaliv committed Apr 16, 2019
1 parent ebf4a40 commit f8147ed
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/unit/components/UI/Select.spec.js
Expand Up @@ -5,6 +5,8 @@ import { dark } from 'themes'
import { ThemeProvider } from 'styled-components'
import { Select } from 'components/UI'

import { IntlProvider } from 'react-intl'

describe('component.UI.Toggle', () => {
it('should render correctly', () => {
const selectItems = [
Expand All @@ -17,11 +19,13 @@ describe('component.UI.Toggle', () => {
]
const tree = renderer
.create(
<ThemeProvider theme={dark}>
<Form>
<Select field="name" items={selectItems} />
</Form>
</ThemeProvider>
<IntlProvider locale="en">
<ThemeProvider theme={dark}>
<Form>
<Select field="name" items={selectItems} />
</Form>
</ThemeProvider>
</IntlProvider>
)
.toJSON()
expect(tree).toMatchSnapshot()
Expand Down

0 comments on commit f8147ed

Please sign in to comment.