45 lines
788 B
TypeScript
45 lines
788 B
TypeScript
|
|
/**
|
||
|
|
* Mock User Data
|
||
|
|
*
|
||
|
|
* Provides mock user objects for SSO authentication flows.
|
||
|
|
*/
|
||
|
|
|
||
|
|
export interface MockUser {
|
||
|
|
id: string
|
||
|
|
email: string
|
||
|
|
name: string
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Pre-defined test users for consistent testing
|
||
|
|
*/
|
||
|
|
export const MOCK_USERS: MockUser[] = [
|
||
|
|
{
|
||
|
|
id: 'user-123',
|
||
|
|
email: 'test@example.com',
|
||
|
|
name: 'Test User',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 'user-456',
|
||
|
|
email: 'creator@example.com',
|
||
|
|
name: 'Test Creator',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 'user-789',
|
||
|
|
email: 'admin@example.com',
|
||
|
|
name: 'Test Admin',
|
||
|
|
},
|
||
|
|
]
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Factory function to create a mock user with custom properties
|
||
|
|
*/
|
||
|
|
export function createMockUser(overrides?: Partial<MockUser>): MockUser {
|
||
|
|
return {
|
||
|
|
id: `user-${Date.now()}`,
|
||
|
|
email: 'mock@example.com',
|
||
|
|
name: 'Mock User',
|
||
|
|
...overrides,
|
||
|
|
}
|
||
|
|
}
|