mengw15 opened a new pull request, #5458: URL: https://github.com/apache/texera/pull/5458
### What changes were proposed in this PR? Adds a unit spec for `HighlightSearchTermsPipe`, which previously had none. Covers `transform()`: - short-circuit paths — `undefined` value returns `""`, empty `terms` returns the value unchanged - single- and multi-token wrapping in `<span class="highlight-search-terms">` - case-insensitive matching (`gi`) with the original casing preserved inside the span - global wrapping of every occurrence Follows `frontend/TESTING.md` (Vitest; `DomSanitizer` provided via `TestBed`; the wrapped string is recovered through `changingThisBreaksApplicationSecurity`). ### Any related issues, documentation, discussions? Closes #5452. ### How was this PR tested? `yarn test --include='**/highlight-search-terms.pipe.spec.ts'` → 6 passed. `prettier --check` clean. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) -- 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]
