Sha256: 158861707aad04c5799826d77087de627b9750041a4376cf333b1a5111ca6ef6

Contents?: true

Size: 732 Bytes

Versions: 27

Compression:

Stored size: 732 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";

  it("renders a div of Select", () => {
    const wrapper = shallow(<Autocomplete name={name} selected={selected} options={options} noResultsText={noResultsText} placeholder={placeholder} searchPromptText={searchPromptText} searchURL={searchURL} />);
    expect(wrapper.find(".autocomplete-field").exists()).toBeTruthy();
  });
});

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
decidim-admin-0.13.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.12.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.13.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.12.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.13.0.pre1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.12.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.12.0.pre app/frontend/components/autocomplete.component.test.tsx