mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
20 lines
463 B
TypeScript
20 lines
463 B
TypeScript
import {SentryAppWebhookRequest} from 'sentry/types';
|
|
|
|
export function SentryAppWebhookRequestFixture(
|
|
params: Partial<SentryAppWebhookRequest> = {}
|
|
): SentryAppWebhookRequest {
|
|
return {
|
|
webhookUrl: 'https://example.com/webhook',
|
|
sentryAppSlug: 'sample-app',
|
|
eventType: 'issue.assigned',
|
|
date: '2019-09-25T23:54:54.440Z',
|
|
organization: {
|
|
slug: 'test-org',
|
|
name: 'Test Org',
|
|
},
|
|
responseCode: 400,
|
|
|
|
...params,
|
|
};
|
|
}
|