Arq0n opened a new pull request, #5786:
URL: https://github.com/apache/texera/pull/5786

   ## Purpose
   
   Add dedicated unit coverage for `AdminGuardService.canActivate()` to pin the 
admin route-guard behavior.
   
   ## Summary of Changes
   
   - Added `admin-guard.service.spec.ts` next to `admin-guard.service.ts`.
   - Verifies that admin users can navigate without redirecting.
   - Verifies that non-admin users are blocked and redirected to 
`USER_WORKFLOW`.
   
   ## How Was This PR Tested?
   
   ```bash
   ng test --watch=false --include 
src/app/dashboard/service/admin/guard/admin-guard.service.spec.ts


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to