projectReleaseDetails.spec.tsx 549 B

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