incidentActivity.ts 377 B

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