import React from 'react' import {css} from '@emotion/core' import {renderFragment} from 'test-utils' import {Input} from './Input' test(' -> as prop', () => { expect(renderFragment()).toMatchSnapshot() }) test(' -> box properties', () => { expect(renderFragment()).toMatchSnapshot() }) test(' -> flex properties', () => { expect(renderFragment()).toMatchSnapshot() }) test(' -> text properties', () => { expect(renderFragment()).toMatchSnapshot() }) test(' -> placeholder/hover/focus', () => { const theme = { input: { getPlaceholderClass: () => css` color: black; `, getHoverClass: () => css` &:hover { background: red; } `, getFocusClass: () => css` &:focus { background: blue; } `, }, } expect(renderFragment(, theme)).toMatchSnapshot() }) test(' -> placeholder is null', () => { const theme = { input: { getPlaceholderClass: () => null, }, } expect(renderFragment(, theme)).toMatchSnapshot() })