1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00
immich/server/test/fixtures/api-key.stub.ts

14 lines
380 B
TypeScript
Raw Normal View History

2024-03-20 23:02:51 +02:00
import { APIKeyEntity } from 'src/entities/api-key.entity';
import { authStub } from 'test/fixtures/auth.stub';
import { userStub } from 'test/fixtures/user.stub';
export const keyStub = {
admin: Object.freeze({
id: 'my-random-guid',
name: 'My Key',
key: 'my-api-key (hashed)',
userId: authStub.admin.user.id,
user: userStub.admin,
} as APIKeyEntity),
};