You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve test coverage for attribution_control.ts (#7120)
* Improve test coverage for attribution_control.ts
Added comprehensive edge case tests:
- Filtering non-string values from customAttribution array
- Filtering whitespace-only attributions from sources
- Testing _updateCompactMinimize behavior during map drag events
- Verifying onRemove properly cleans up event listeners and state
- Handling empty customAttribution strings
- Deduplication of identical attributions from multiple sources
These tests improve robustness and ensure edge cases are handled correctly.
* test: remove redundant comments and split compact-show test
Signed-off-by: pierreeurope <pierre.europe@pm.me>
* Address review: use DOM queries instead of internal fields, split compact test
* Revert unrelated CSS changes
---------
Signed-off-by: pierreeurope <pierre.europe@pm.me>
0 commit comments