refactor: tests adriaan
This commit is contained in:
parent
ded1a5908e
commit
2d841e7955
7 changed files with 99 additions and 178 deletions
|
@ -42,7 +42,7 @@ export async function fetchStudent(username: string): Promise<Student> {
|
|||
const user = await studentRepository.findByUsername(username);
|
||||
|
||||
if (!user) {
|
||||
throw new NotFoundException('Student with username not found');
|
||||
throw new NotFoundException(`Student with username ${username} not found`);
|
||||
}
|
||||
|
||||
return user;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue