123456789101112131415161718 |
- import type {InternalAppApiToken} from 'sentry/types';
- export function ApiTokenFixture(
- params: Partial<InternalAppApiToken> = {}
- ): InternalAppApiToken {
- return {
- id: '1',
- token: 'apitoken123',
- dateCreated: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
- scopes: ['project:read', 'project:write'],
- application: null,
- refreshToken: 'refresh_token',
- expiresAt: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
- state: 'active',
- tokenLastCharacters: 'n123',
- ...params,
- };
- }
|