eventAttachment.ts 486 B

123456789101112131415161718
  1. import type {EventAttachment} from 'sentry/types/group';
  2. export function EventAttachmentFixture(params = {}): EventAttachment {
  3. return {
  4. id: '1',
  5. name: 'screenshot.png',
  6. headers: {
  7. 'Content-Type': 'image/png',
  8. },
  9. mimetype: 'image/png',
  10. size: 84235,
  11. sha1: '986043ce8056f3cde048720d30a3959a6692fbef',
  12. dateCreated: '2022-09-12T09:27:30.512445Z',
  13. type: 'event.attachment',
  14. event_id: '12345678901234567890123456789012',
  15. ...params,
  16. };
  17. }