sentryAppWebhookRequest.tsx 463 B

12345678910111213141516171819
  1. import {SentryAppWebhookRequest} from 'sentry/types';
  2. export function SentryAppWebhookRequestFixture(
  3. params: Partial<SentryAppWebhookRequest> = {}
  4. ): SentryAppWebhookRequest {
  5. return {
  6. webhookUrl: 'https://example.com/webhook',
  7. sentryAppSlug: 'sample-app',
  8. eventType: 'issue.assigned',
  9. date: '2019-09-25T23:54:54.440Z',
  10. organization: {
  11. slug: 'test-org',
  12. name: 'Test Org',
  13. },
  14. responseCode: 400,
  15. ...params,
  16. };
  17. }