incidentActivity.ts 398 B

1234567891011121314151617
  1. import {UserFixture} from 'sentry-fixture/user';
  2. import {ActivityTypeDraft} from 'sentry/views/alerts/types';
  3. export function IncidentActivityFixture(
  4. params: Partial<ActivityTypeDraft> = {}
  5. ): ActivityTypeDraft {
  6. return {
  7. comment: 'incident activity comment',
  8. type: 3,
  9. dateCreated: '',
  10. user: UserFixture(),
  11. id: '123',
  12. incidentIdentifier: '999',
  13. ...params,
  14. };
  15. }