UNPKG

@findify/react-components

Version:
16 lines (15 loc) 515 B
import { shallow } from 'enzyme'; import theme from './styles.css'; import SearchSuggestions from './view'; const createAnyGetMock = (value) => ({ get: () => value, hashCode: () => value, }); describe('SearchSuggestions', () => { it('renders correctly', () => { expect(shallow(<SearchSuggestions theme={theme} suggestions={[ createAnyGetMock('aisaka taiga'), createAnyGetMock('ryuuji takasu'), ]} query={createAnyGetMock('ta')}/>)).toMatchSnapshot(); }); });