mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): test fixtures (#3491)
This commit is contained in:
parent
5f9dfa9493
commit
9e085c1071
32 changed files with 1545 additions and 1538 deletions
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),
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue