mirror of
https://github.com/immich-app/immich.git
synced 2025-02-18 01:24:26 -05:00
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
import { authStub } from 'test/fixtures/auth.stub';
|
|
import { userStub } from 'test/fixtures/user.stub';
|
|
|
|
export const keyStub = {
|
|
authKey: Object.freeze({
|
|
id: 'my-random-guid',
|
|
key: 'my-api-key (hashed)',
|
|
user: userStub.admin,
|
|
permissions: [],
|
|
} as any),
|
|
|
|
admin: Object.freeze({
|
|
id: 'my-random-guid',
|
|
name: 'My Key',
|
|
key: 'my-api-key (hashed)',
|
|
userId: authStub.admin.user.id,
|
|
user: userStub.admin,
|
|
permissions: [],
|
|
} as any),
|
|
};
|