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

   ## Summary
   
   Adds `tencentCatalog.test.ts`, first unit tests for the Tencent Cloud 
catalog API module, mirroring the existing `aliyunCatalog.test.ts` style with 
an axios mock adapter.
   
   Coverage:
   - `listTencentRegions` fetches regions for a credential and returns the 
decoded payload;
   - `listTencentInstances` requests with the credential and region params;
   - the optional `search` term is sent only when provided (omitted from the 
request params otherwise).
   
   ## Why
   
   The Tencent catalog module drives the cloud instance picker for the Tencent 
vendor type; it had no test while its Aliyun sibling did.
   
   ## Testing
   
   `vitest run src/api/tencentCatalog.test.ts` — 3/3 pass; `tsc --noEmit` 
clean; `eslint` 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