123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import {ImageFixture} from 'sentry-fixture/image';
- import {
- type Entry,
- type EntryDebugMeta,
- type EntryRequest,
- EntryType,
- } from 'sentry/types';
- 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,
- };
- }
|