yyqdbngt opened a new pull request, #3902: URL: https://github.com/apache/rocketmq-dashboard/pull/3902
### Motivation The `parseMessageProperties` helper had tests for value preservation, duplicates, and prototype keys, but blank-line skipping, whitespace trimming, and malformed-line errors were unasserted. This PR grows the suite from 4 to 8 cases. ### Changes - Blank and whitespace-only lines are skipped without producing errors. - Surrounding whitespace is trimmed from both keys and values. - Lines without an equals sign (and `=value`-style lines) are reported as `key=value` format errors in order. - A trailing equals sign (`key=`) keeps an empty value without an error. ### Verification - `vitest run src/utils/messageProperties.test.ts`: 8/8 passed - `tsc --noEmit`: clean - `eslint src/utils/messageProperties.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]
