huridocs/uwazi

View on GitHub
app/react/Documents/components/specs/__snapshots__/DocumentContentSnippets.spec.js.snap

Summary

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

exports[`SnippetList should render all document snippets 1`] = `
<Fragment>
  <li
    className="snippet-list-item-header fulltext-snippet-header"
  >
    Document contents
  </li>
  <li
    className="snippet-list-item fulltext-snippet selected"
    key="0"
  >
    <Connect(I18NLink)
      onClick={[Function]}
      to="/document/sharedId?page=1&searchTerm=snippet"
    >
      <span
        className="page-number"
      >
        1
      </span>
      <span
        className="snippet-text"
      >
        <SafeHTML>
          first &lt;b&gt;snippet 1&lt;/b&gt; found
        </SafeHTML>
      </span>
    </Connect(I18NLink)>
  </li>
  <li
    className="snippet-list-item fulltext-snippet "
    key="1"
  >
    <Connect(I18NLink)
      onClick={[Function]}
      to="/document/sharedId?page=2&searchTerm=snippet"
    >
      <span
        className="page-number"
      >
        2
      </span>
      <span
        className="snippet-text"
      >
        <SafeHTML>
          second &lt;b&gt;snippet 3&lt;/b&gt; found
        </SafeHTML>
      </span>
    </Connect(I18NLink)>
  </li>
  <li
    className="snippet-list-item fulltext-snippet "
    key="2"
  >
    <Connect(I18NLink)
      onClick={[Function]}
      to="/document/sharedId?page=3&searchTerm=snippet"
    >
      <span
        className="page-number"
      >
        3
      </span>
      <span
        className="snippet-text"
      >
        <SafeHTML>
          third &lt;b&gt;snippet 3&lt;/b&gt; found
        </SafeHTML>
      </span>
    </Connect(I18NLink)>
  </li>
</Fragment>
`;