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:
Adriaan J. 2025-05-13 09:25:48 +02:00 committed by GitHub
commit 9e8770cf06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 361 additions and 3 deletions

View file

@ -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;