broadcast.ts 783 B

123456789101112131415161718
  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. mediaUrl: 'https://images.ctfassets.net/em6l9zw4tzag/2vWdw7ZaApWxygugalbyOC/285525e5b7c9fbfa8fb814a69ab214cd/PerformancePageSketches_hero.jpg?w=2520&h=945&q=50&fm=webp',
  15. ...params,
  16. };
  17. }