mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor(server): test fixtures (#3491)
This commit is contained in:
13
server/test/fixtures/api-key.stub.ts
vendored
Normal file
13
server/test/fixtures/api-key.stub.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { APIKeyEntity } from '@app/infra/entities';
|
||||
import { authStub } from './auth.stub';
|
||||
import { userStub } from './user.stub';
|
||||
|
||||
export const keyStub = {
|
||||
admin: Object.freeze({
|
||||
id: 'my-random-guid',
|
||||
name: 'My Key',
|
||||
key: 'my-api-key (hashed)',
|
||||
userId: authStub.admin.id,
|
||||
user: userStub.admin,
|
||||
} as APIKeyEntity),
|
||||
};
|
||||
Reference in New Issue
Block a user