huridocs/uwazi

View on GitHub
app/react/Layout/specs/__snapshots__/CurrentLocationLink.spec.js.snap

Summary

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

exports[`Link should overwrite url query with query params passed (without mutating query) 1`] = `
<Link
  className="className"
  prop="value"
  to="pathanem?param=value&param2=new+value&test=test"
>
  text
</Link>
`;

exports[`Link should pass all other props to Link 1`] = `
<Link
  className="className"
  prop="value"
  to="pathanem?param=value&test=false"
>
  text
</Link>
`;

exports[`Link should remove props when they are an empty string 1`] = `
<Link
  className="className"
  prop="value"
  to="pathanem?param=value&test=false"
>
  text
</Link>
`;

exports[`Link should render a link with current location as the url 1`] = `
<Link
  className=""
  prop=""
  to="pathanem?param=value&param2=value2"
>
  text
</Link>
`;