import { User } from '../../user/entities/user.entity' ; export class MockUserRepository { private mockUsers : User [ ] ; constructor ( mockUsers ) { this . mockUsers = mockUsers ; } find ( ) { return this . mockUsers ; } findOne ( id ) { return this . mockUsers . find ( ( user ) => user . id === id ) ; } }