yyqdbngt opened a new pull request, #3887: URL: https://github.com/apache/rocketmq-dashboard/pull/3887
### Motivation The alert rule assets API tests covered the three happy paths but left empty inventories and URL-encoding of asset names untested. This PR grows the suite from 3 to 6 cases. ### Changes - `listAlertRuleAssets` resolves an empty array when no assets are installed. - Asset names containing spaces and slashes are URL-encoded before reaching the fetch and export endpoints (`consumer%20lag%2Frules`, `broker%20%2F%20down`). ### Verification - `vitest run src/api/alertRuleAssets.test.ts`: 6/6 passed - `tsc --noEmit`: clean - `eslint src/api/alertRuleAssets.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]
