Sha256: 47b05d433a232ed76c86184aaa9e2f0afec5191ed67659ed0c451776ffa97bfc
Contents?: true
Size: 787 Bytes
Versions: 19
Compression:
Stored size: 787 Bytes
Contents
import { shallow } from "enzyme"; import * as React from "react"; import Autocomplete from "./autocomplete.component"; describe("<Autocomplete />", () => { const name = "custom[name]"; const selected = ""; const options = []; const placeholder = "Pick a value"; const noResultsText = "No results found"; const searchPromptText = "Type to search"; const searchURL = "/some/url"; const changeURL = "/some/other/url"; it("renders a div of Select", () => { const wrapper = shallow(<Autocomplete name={name} selected={selected} options={options} noResultsText={noResultsText} placeholder={placeholder} searchPromptText={searchPromptText} searchURL={searchURL} changeURL={changeURL} />); expect(wrapper.find(".autocomplete-field").exists()).toBeTruthy(); }); });
Version data entries
19 entries across 19 versions & 1 rubygems