mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Fix auth test: correct expected error message for unauthenticated org access
The test was expecting 'Unauthorized: Invalid organization access' but the authorizeAnalytics function first checks if userId is null and throws 'Unauthorized: User required' before reaching the organization validation. This fixes the failing test in CI by aligning the test expectation with the actual function behavior.
This commit is contained in:
parent
1051bb684f
commit
8826ed6829
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ describe('authorizeAnalytics', () => {
|
|||
requestedOrgId: 'org-456',
|
||||
requestedUserId: null,
|
||||
}),
|
||||
).rejects.toThrow('Unauthorized: Invalid organization access');
|
||||
).rejects.toThrow('Unauthorized: User required');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue