Sha256: 29d7595499d1ae757efcec2501be7c7725fae43b4a601f014be7e91245a0c3df
Contents?: true
Size: 793 Bytes
Versions: 14
Compression:
Stored size: 793 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 = Array(); 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
14 entries across 14 versions & 1 rubygems