btlqql opened a new issue, #4012:
URL: https://github.com/apache/rocketmq-dashboard/issues/4012
## Problem
The current test suite does not cover theme constant completeness.
## Expected behavior
- A focused Vitest case locks the existing behavior.
- The targeted test file passes and fails if the covered behavior regresses.
## Scope
Only add regression coverage for $(@{Slug=theme-constants; Focus=theme
constant completeness; PrTitle=test(theme): verify theme constants stay
complete; TestFile=web/src/constants/__tests__/theme.test.ts; Mode=existing;
Append=describe('theme constants completeness', () => {
it('keeps every theme color a six-digit hex value', () => {
for (const color of Object.values(THEME_COLORS)) {
expect(color).toMatch(/^#[0-9a-fA-F]{6}$/);
}
});
it('keeps topic and protocol labels scoped to the theme i18n namespace',
() => {
for (const value of Object.values(TOPIC_TYPE_MAP)) {
expect(value.labelKey.startsWith('theme.')).toBe(true);
}
for (const value of Object.values(PROTOCOL_MAP)) {
expect(value.labelKey.startsWith('theme.')).toBe(true);
}
});
});}.TestFile). No runtime behavior changes.
## Acceptance criteria
- [ ] The targeted Vitest file passes.
- [ ] git diff --check is 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]