mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:39:03 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			680 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			680 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { SessionEntity } from 'src/entities/session.entity';
 | |
| import { userStub } from 'test/fixtures/user.stub';
 | |
| 
 | |
| export const sessionStub = {
 | |
|   valid: Object.freeze<SessionEntity>({
 | |
|     id: 'token-id',
 | |
|     token: 'auth_token',
 | |
|     userId: userStub.user1.id,
 | |
|     user: userStub.user1,
 | |
|     createdAt: new Date('2021-01-01'),
 | |
|     updatedAt: new Date(),
 | |
|     deviceType: '',
 | |
|     deviceOS: '',
 | |
|   }),
 | |
|   inactive: Object.freeze<SessionEntity>({
 | |
|     id: 'not_active',
 | |
|     token: 'auth_token',
 | |
|     userId: userStub.user1.id,
 | |
|     user: userStub.user1,
 | |
|     createdAt: new Date('2021-01-01'),
 | |
|     updatedAt: new Date('2021-01-01'),
 | |
|     deviceType: 'Mobile',
 | |
|     deviceOS: 'Android',
 | |
|   }),
 | |
| };
 |