@findify/react-components
Version:
Findify react UI components
29 lines (27 loc) • 857 B
JavaScript
import { shallow } from 'enzyme';
var theme = {
"root": "findify-components-autocomplete--suggestions",
"list": "findify-components-autocomplete--suggestions__list",
"horizontal": "findify-components-autocomplete--suggestions__horizontal"
};
import SearchSuggestions from "./view";
import { jsx as _jsx } from "react/jsx-runtime";
var createAnyGetMock = function createAnyGetMock(value) {
return {
get: function get() {
return value;
},
hashCode: function hashCode() {
return value;
}
};
};
describe('SearchSuggestions', function () {
it('renders correctly', function () {
expect(shallow( /*#__PURE__*/_jsx(SearchSuggestions, {
theme: theme,
suggestions: [createAnyGetMock('aisaka taiga'), createAnyGetMock('ryuuji takasu')],
query: createAnyGetMock('ta')
}))).toMatchSnapshot();
});
});