12345678910111213141516171819 |
- import {render} from 'sentry-test/reactTestingLibrary';
- import TeamResolutionTime from 'sentry/views/organizationStats/teamInsights/teamResolutionTime';
- describe('TeamResolutionTime', () => {
- it('should render graph of issue time to resolution', () => {
- const team = TestStubs.Team();
- const organization = TestStubs.Organization();
- const timeToResolutionApi = MockApiClient.addMockResponse({
- url: `/teams/${organization.slug}/${team.slug}/time-to-resolution/`,
- body: TestStubs.TeamResolutionTime(),
- });
- render(
- <TeamResolutionTime organization={organization} teamSlug={team.slug} period="8w" />
- );
- expect(timeToResolutionApi).toHaveBeenCalledTimes(1);
- });
- });
|