sentryAppToken.tsx 499 B

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