mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
19 lines
480 B
TypeScript
19 lines
480 B
TypeScript
import type {EventAttachment} from 'sentry/types';
|
|
|
|
export function EventAttachmentFixture(params = {}): EventAttachment {
|
|
return {
|
|
id: '1',
|
|
name: 'screenshot.png',
|
|
headers: {
|
|
'Content-Type': 'image/png',
|
|
},
|
|
mimetype: 'image/png',
|
|
size: 84235,
|
|
sha1: '986043ce8056f3cde048720d30a3959a6692fbef',
|
|
dateCreated: '2022-09-12T09:27:30.512445Z',
|
|
type: 'event.attachment',
|
|
event_id: '12345678901234567890123456789012',
|
|
...params,
|
|
};
|
|
}
|