Skip to content
Permalink
Browse files

fix(test): update Select tests

  • Loading branch information...
korhaliv committed Apr 16, 2019
1 parent ebf4a40 commit f8147ed05def177060233b1e5f580310f9dd95d5
Showing with 9 additions and 5 deletions.
  1. +9 −5 test/unit/components/UI/Select.spec.js
@@ -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 = [
@@ -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()

0 comments on commit f8147ed

Please sign in to comment.
You can’t perform that action at this time.