import {Organization} from 'sentry-fixture/organization'; import {TeamResolutionTime as TeamResolutionTimeFixture} from 'sentry-fixture/teamResolutionTime'; 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 = Organization(); const timeToResolutionApi = MockApiClient.addMockResponse({ url: `/teams/${organization.slug}/${team.slug}/time-to-resolution/`, body: TeamResolutionTimeFixture(), }); render( ); expect(timeToResolutionApi).toHaveBeenCalledTimes(1); }); });