projectReleaseDetails.spec.tsx 598 B

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