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

   Fixes #4044
   
   
   ## Summary
   
   Adds a regression case to `web/src/utils/messagePayloadPreview.test.ts` for 
reserved message property detection, covering whitespace trimming and 
case-insensitive matching (`'  UNIQ_KEY  '`, `'wait'`) plus a negative 
non-reserved name (`'tenant'`).
   
   ## Why
   
   `isReservedMessageProperty('tags')` and a negative case were already covered 
by an existing test, but the trim + case-insensitive normalization boundary was 
untested. A regression there would misclassify reserved properties entered with 
surrounding whitespace or lowercase.
   
   ## Testing
   
   - `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0
   - `./node_modules/.bin/vitest run src/utils/messagePayloadPreview.test.ts` → 
14 tests pass
   


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