/** * View Data Layer Tests - Media Functionality * * This test file will cover the view data layer for media functionality. * * The view data layer is responsible for: * - DTO → UI model mapping * - Formatting, sorting, and grouping * - Derived fields and defaults * - UI-specific semantics * * This layer isolates the UI from API churn by providing a stable interface * between the API layer and the presentation layer. * * Test coverage will include: * - Avatar page data transformation and display * - Avatar route data handling for driver-specific avatars * - Category icon data mapping and formatting * - League cover and logo data transformation * - Sponsor logo data handling and display * - Team logo data mapping and validation * - Track image data transformation and UI state * - Media upload and validation view models * - Media deletion confirmation and state management * - Derived media fields (file size, format, dimensions, etc.) * - Default values and fallbacks for media views * - Media-specific formatting (image optimization, aspect ratios, etc.) * - Media access control and permission view models */