projectReleaseDetails.spec.tsx 662 B

12345678910111213141516171819202122
  1. import {ReleaseFixture} from 'sentry-fixture/release';
  2. import {ReleaseMetaFixture} from 'sentry-fixture/releaseMeta';
  3. import {render} from 'sentry-test/reactTestingLibrary';
  4. import ProjectReleaseDetails from './projectReleaseDetails';
  5. describe('ProjectReleaseDetails', () => {
  6. it('should dislay if the release is using semver', () => {
  7. const release = ReleaseFixture();
  8. const releaseMeta = ReleaseMetaFixture();
  9. const {container} = render(
  10. <ProjectReleaseDetails
  11. projectSlug="project-slug"
  12. release={release}
  13. releaseMeta={releaseMeta}
  14. />
  15. );
  16. expect(container).toHaveTextContent('SemverYes');
  17. });
  18. });