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

Version Path
decidim-admin-0.24.3 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.6 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.24.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.5 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.24.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.24.0 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.24.0.rc2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.4 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.24.0.rc1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.3 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.2 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.1.rc1 app/frontend/components/autocomplete.component.test.tsx
decidim-admin-0.23.0 app/frontend/components/autocomplete.component.test.tsx