broadcast.ts 609 B

1234567891011121314151617
  1. import type {Broadcast} from 'sentry/types/system';
  2. export function BroadcastFixture(params: Partial<Broadcast> = {}): Broadcast {
  3. return {
  4. dateCreated: new Date().toISOString(),
  5. dateExpires: new Date().toISOString(),
  6. hasSeen: false,
  7. id: '8',
  8. isActive: true,
  9. cta: 'cta_text',
  10. link: 'https://docs.sentry.io/clients/javascript/sourcemaps/#uploading-source-maps-to-sentry',
  11. message:
  12. 'Source maps are JSON files that contain information on how to map your transpiled source code back to their original source.',
  13. title: 'Learn about Source Maps',
  14. ...params,
  15. };
  16. }