huridocs/uwazi

View on GitHub
app/react/Markdown/components/specs/__snapshots__/SearchBox.spec.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`SearchBox should render a basic input that binds to the correct model 1`] = `
<div
  className="search-box "
>
  <Connect(Form)
    model="library.search"
    onSubmit={[Function]}
  >
    <div
      className="input-group"
    >
      <button
        className="btn btn-primary"
        type="submit"
      >
        <Connect(Icon)
          icon="search"
        />
      </button>
      <Modeled(Connect(Field))
        model=".searchTerm"
      >
        <input
          className="form-control"
          placeholder="placeholder text"
          type="text"
        />
      </Modeled(Connect(Field))>
    </div>
  </Connect(Form)>
  <ModalTips
    label="Search Tips"
    title="Narrow down your searches"
    type="info"
  >
    <SearchTipsContent />
  </ModalTips>
</div>
`;