/** * View Data Layer Tests - Profile Functionality * * This test file will cover the view data layer for profile 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: * - Driver profile data transformation and formatting * - Profile statistics (rating, rank, race counts, finishes, consistency, etc.) * - Team membership data mapping and role labeling * - Extended profile data (timezone, racing style, favorite track/car, etc.) * - Social handles formatting and URL generation * - Achievement data transformation and icon mapping * - Friends list data mapping and display formatting * - Derived fields (percentile, consistency, looking for team, open to requests) * - Default values and fallbacks for profile views * - Profile-specific formatting (country flags, date labels, etc.) */