sentryAppToken.tsx 471 B

123456789101112131415161718
  1. import {NewInternalAppApiToken} from 'sentry/types';
  2. export function SentryAppTokenFixture(
  3. params: Partial<NewInternalAppApiToken> = {}
  4. ): NewInternalAppApiToken {
  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. }