userDetails.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. export function UserDetails(params = {}) {
  2. return {
  3. username: 'billyfirefoxusername@test.com',
  4. emails: [
  5. {is_verified: false, id: '20', email: 'billyfirefox@test.com2'},
  6. {is_verified: true, id: '8', email: 'billyfirefox2@test.com'},
  7. {is_verified: false, id: '7', email: 'billyfirefox@test.com'},
  8. ],
  9. isManaged: false,
  10. lastActive: '2018-01-25T21:00:19.946Z',
  11. identities: [],
  12. id: '4',
  13. isActive: true,
  14. has2fa: false,
  15. name: 'Firefox Billy',
  16. avatarUrl:
  17. 'https://secure.gravatar.com/avatar/5df53e28e63099658c1ba89b8e9a7cf4?s=32&d=mm',
  18. authenticators: [],
  19. dateJoined: '2018-01-11T00:30:41.366Z',
  20. options: {
  21. timezone: 'UTC',
  22. seenReleaseBroadcast: null,
  23. stacktraceOrder: 'default',
  24. language: 'en',
  25. clock24Hours: false,
  26. defaultIssueEvent: 'recommended',
  27. },
  28. avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
  29. lastLogin: '2018-01-25T19:57:46.973Z',
  30. permissions: [],
  31. email: 'billyfirefox@test.com',
  32. ...params,
  33. };
  34. }