Add 5 new tests in a "user data validation" describe block covering: - User missing id → UnauthorizedException - User missing email → UnauthorizedException - User missing name → UnauthorizedException - User is a string → UnauthorizedException - User is null → TypeError (typeof null === "object" causes 'in' operator to throw) Also fixes pre-existing broken DI mock setup: replaced NestJS TestingModule with direct constructor injection so all 15 tests (10 existing + 5 new) pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 KiB
10 KiB