huridocs/uwazi

View on GitHub
app/react/Forms/components/specs/__snapshots__/DateRange.spec.js.snap

Summary

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

exports[`DateRange should allow using the local timezone 1`] = `
<div>
  <div
    className="DatePicker__From"
  >
    <span
      className="truncate"
    >
      <Connect(Translate)
        translationKey="Label date \\"From\\""
      >
        From:
      </Connect(Translate)>
    </span>
    <Connect(DatePicker)
      onChange={[Function]}
      useTimezone={true}
      value={0}
    />
  </div>
  <div
    className="DatePicker__To"
  >
    <span
      className="truncate"
    >
      <Connect(Translate)
        translationKey="Label date \\"to\\""
      >
        To:
      </Connect(Translate)>
    </span>
    <Connect(DatePicker)
      endOfDay={true}
      onChange={[Function]}
      useTimezone={true}
      value={1}
    />
  </div>
</div>
`;

exports[`DateRange should render the component 1`] = `
<div>
  <div
    className="DatePicker__From"
  >
    <span
      className="truncate"
    >
      <Connect(Translate)
        translationKey="Label date \\"From\\""
      >
        From:
      </Connect(Translate)>
    </span>
    <Connect(DatePicker)
      onChange={[Function]}
      useTimezone={false}
      value={0}
    />
  </div>
  <div
    className="DatePicker__To"
  >
    <span
      className="truncate"
    >
      <Connect(Translate)
        translationKey="Label date \\"to\\""
      >
        To:
      </Connect(Translate)>
    </span>
    <Connect(DatePicker)
      endOfDay={true}
      onChange={[Function]}
      useTimezone={false}
      value={1}
    />
  </div>
</div>
`;