1234567891011121314151617181920212223242526272829303132333435363738 |
- import {ImageFixture} from 'sentry-fixture/image';
- import type {Entry, EntryDebugMeta, EntryRequest} from 'sentry/types/event';
- import {EntryType} from 'sentry/types/event';
- export function EventEntryFixture(params = {}): Entry {
- return {
- type: EntryType.MESSAGE,
- data: {
- formatted: 'Blocked script',
- },
- ...params,
- };
- }
- export function EntryRequestFixture(params: Partial<EntryRequest> = {}): EntryRequest {
- return {
- type: EntryType.REQUEST,
- data: {
- apiTarget: null,
- method: 'GET',
- url: '/index',
- },
- ...params,
- };
- }
- export function EntryDebugMetaFixture(
- params: Partial<EntryDebugMeta> = {}
- ): EntryDebugMeta {
- return {
- type: EntryType.DEBUGMETA,
- data: {
- images: [ImageFixture()],
- },
- ...params,
- };
- }
|