ci: fix existing tests based off new permission handling

- Renamed test cases to reflect changes in permission checks being handled at the route level.
- Updated assertions to verify that agents are returned regardless of user permissions due to the new permission system.
- Adjusted mocks in AppService and PermissionService tests to ensure proper functionality without relying on actual implementations.
This commit is contained in:
Danny Avila 2025-06-09 17:47:47 -04:00
parent c07a342c97
commit 004f128aec
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 15 additions and 8 deletions

View file

@ -100,7 +100,8 @@ beforeEach(async () => {
});
// Mock getUserPrincipals to avoid depending on the actual implementation
jest.mock('~/models/userGroupMethods', () => ({
jest.mock('~/models', () => ({
...jest.requireActual('~/models'),
getUserPrincipals: jest.fn(),
}));