Files
2024-02-15 17:01:50 +00:00

20 lines
589 B
TypeScript

import type {NewInternalAppApiToken} from 'sentry/types';
export function ApiTokenFixture(
params: Partial<NewInternalAppApiToken> = {}
): NewInternalAppApiToken {
return {
id: '1',
name: 'token_name1',
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,
};
}