testUtils.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import type {Commit, Repository, User} from 'sentry/types';
  2. import type {EventData} from 'sentry/utils/discover/eventView';
  3. export const defaultRow: EventData = {
  4. id: '6b43e285de834ec5b5fe30d62d549b20',
  5. issue: 'SENTRY-VVY',
  6. release: 'backend@22.10.0+aaf33944f93dc8fa4234ca046a8d88fb1dccfb76',
  7. title: 'error: Error -3 while decompressing data: invalid stored block lengths',
  8. 'issue.id': 3512441874,
  9. 'project.name': 'sentry',
  10. };
  11. export const mockedCommit: Commit = {
  12. dateCreated: '2020-11-30T18:46:31Z',
  13. id: 'f7f395d14b2fe29a4e253bf1d3094d61e6ad4434',
  14. message: 'ref(commitRow): refactor to fc\n',
  15. author: {
  16. id: '0',
  17. username: 'author',
  18. ip_address: '192.168.1.1',
  19. email: 'author@commit.com',
  20. name: 'Author',
  21. } as User,
  22. repository: {
  23. id: '1',
  24. integrationId: '2',
  25. name: 'getsentry/sentry',
  26. dateCreated: '2019-11-30T18:46:31Z',
  27. } as Repository,
  28. releases: [],
  29. };
  30. export const mockedUser1 = {
  31. id: '2',
  32. username: 'author456',
  33. ip_address: '192.168.1.1',
  34. email: 'author1@commit.com',
  35. name: 'Key Name',
  36. } as User;
  37. export const mockedUser2 = {
  38. id: '3',
  39. username: 'author123',
  40. ip_address: '192.168.1.3',
  41. email: 'author2@commit.com',
  42. name: 'Value Name',
  43. } as User;