Merge pull request #148 from SELab-2/feat/endpoints-finaliseren-tests-backend-adriaan
feat: tests voor backend controllers (deel Adriaan)
This commit is contained in:
commit
9e8770cf06
6 changed files with 361 additions and 3 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