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.22.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.21.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.20.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.20.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.19.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.18.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.19.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.17.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.18.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.17.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.16.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.17.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.16.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.15.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.15.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.15.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.14.4 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.14.3 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.14.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.14.1 app/frontend/components/autocomplete.component.test.tsx