yyqdbngt opened a new pull request, #3888:
URL: https://github.com/apache/rocketmq-dashboard/pull/3888

   ### Motivation
   
   The auth API tests covered status, login, and logout paths but left the 
unauthenticated status shape and the `changePassword` endpoint completely 
untested. This PR grows the suite from 5 to 8 cases.
   
   ### Changes
   
   - `getAuthStatus` resolves an unauthenticated session (`authenticated: 
false`) without a `user` property.
   - `changePassword` posts `{ currentPassword, newPassword }` to 
`/auth/password` and resolves void on success.
   - A wrong-current-password failure (400) surfaces as a rejected promise.
   
   ### Verification
   
   - `vitest run src/api/auth.test.ts`: 8/8 passed
   - `tsc --noEmit`: clean
   - `eslint src/api/auth.test.ts`: clean


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