The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
e029e0dfaecc7b52136dfa61ecee41a3abb030b4 / Ranjani Veena Belavadi 
<[email protected]>
test(frontend): add unit test coverage for replaceOneImmutable (#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).

Report URL: https://github.com/apache/texera/actions/runs/29281903927

With regards,
GitHub Actions via GitBox

Reply via email to