yyqdbngt opened a new pull request, #3974: URL: https://github.com/apache/rocketmq-dashboard/pull/3974
### Motivation The alert template preview suite covered rendering, unknowns, labels, and length, but Date/numeric time context, padded placeholders, unused context variables, and duplicate occurrences were untested. This PR grows the suite from 9 to 13 cases. ### Changes - Date and numeric time context render as ISO strings. - Whitespace inside placeholders is trimmed before matching. - Context variables the template never references are reported. - Variables used more than once appear once in the used list. ### Verification - `vitest run src/utils/alertTemplatePreview.test.ts`: 13/13 passed - tsc/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]
