mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import {EventFixture} from 'sentry-fixture/event';
|
|
import {GroupFixture} from 'sentry-fixture/group';
|
|
import {UserFixture} from 'sentry-fixture/user';
|
|
|
|
import type {UserReport} from 'sentry/types';
|
|
|
|
export function UserFeedbackFixture(params: Partial<UserReport> = {}): UserReport {
|
|
const event = EventFixture();
|
|
return {
|
|
id: '123',
|
|
name: 'Lyn',
|
|
email: '[email protected]',
|
|
comments: 'Something bad happened',
|
|
dateCreated: '2018-12-20T00:00:00.000Z',
|
|
issue: GroupFixture(),
|
|
eventID: event.id,
|
|
event,
|
|
user: UserFixture(),
|
|
...params,
|
|
};
|
|
}
|