rbelavadi opened a new pull request, #6393: URL: https://github.com/apache/texera/pull/6393
### What changes were proposed in this PR? Adds `array-utils.spec.ts` to cover `replaceOneImmutable`, a previously untested generic utility function in `common/util/` that returns a new array with the first predicate-matching element replaced, without mutating the original array. Covers all four behavior contracts: returns a new array reference when a match is found, leaves the original array unmutated, returns the same array reference (identity) when no match is found, and passes the element's index as the second argument to the predicate. No production code was changed. ### Any related issues, documentation, discussions? Closes #6256 ### How was this PR tested? Added 4 new unit tests in array-utils.spec.ts covering all behavior contracts described in the issue. Ran locally via `npx ng test --include='**/array-utils.spec.ts'`; all 4 pass. ### Was this PR authored or co-authored using generative AI tooling? Co-authored using Claude (Anthropic). -- 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]
