project et profile => clean archi et test vert
This commit is contained in:
@@ -8,8 +8,8 @@ export class FakeProfileRepository implements ProfileRepository {
|
||||
return of(mockProfiles);
|
||||
}
|
||||
|
||||
getByUserId(userId: string): Observable<Profile | null> {
|
||||
const profile = mockProfiles.find((p) => p.utilisateur === userId) ?? null;
|
||||
getByUserId(userId: string): Observable<Profile> {
|
||||
const profile = mockProfiles.find((p) => p.utilisateur === userId) ?? ({} as Profile);
|
||||
return of(profile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user