sentryAppToken.tsx 462 B

123456789101112131415161718
  1. import {InternalAppApiToken} from 'sentry/types';
  2. export function SentryAppTokenFixture(
  3. params: Partial<InternalAppApiToken> = {}
  4. ): InternalAppApiToken {
  5. return {
  6. token: '123456123456123456123456-token',
  7. dateCreated: '2019-03-02T18:30:26Z',
  8. scopes: [],
  9. refreshToken: '123456123456123456123456-refreshtoken',
  10. expiresAt: '',
  11. application: null,
  12. id: '1',
  13. state: 'active',
  14. tokenLastCharacters: 'oken',
  15. ...params,
  16. };
  17. }