Roshan3580 opened a new pull request, #5595:
URL: https://github.com/apache/texera/pull/5595
## Summary
Adds unit tests for `FormlyRepeatDndComponent`.
Closes #5464
## Changes
- Added `repeat-dnd.component.spec.ts`
- Added a test to verify the component is created successfully
- Added tests covering the early-return behavior when:
- `previousIndex === currentIndex`
- `model` is undefined
- Added a test covering the happy path to verify:
- model items are reordered correctly
- `field.fieldGroup` items are reordered correctly
- `FormArray` controls are reordered correctly
- `props.reorder()` is called once
## Testing
Executed:
```bash
yarn test --include='**/repeat-dnd.component.spec.ts'
yarn lint
--
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]