mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:39:03 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			437 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			437 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 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),
 | |
| };
 | |
| 
 | |
| export const apiKeyCreateStub = {
 | |
|   name: 'API Key',
 | |
| };
 |