1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 00:53:22 +00:00
Files
browser/bitwarden_license/bit-common
Claude 2ad769a6cb Critical: Add comprehensive test coverage for backward compatibility
Add test cases for the primary use case addressed by this PR: validating
OrganizationReportSummary objects without the newApplications field.

Tests added:
- isOrganizationReportSummary accepts objects without newApplications
- isOrganizationReportSummary accepts objects with undefined newApplications
- validateOrganizationReportSummary accepts objects without newApplications
- validateOrganizationReportSummary accepts objects with undefined newApplications
- Validation enforces empty string rejection when newApplications is present
- Validation enforces array length limits when newApplications is present
- Validation enforces string length limits when newApplications is present

This prevents regression where legacy encrypted data (which predates the
newApplications field) would fail to decrypt.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 05:20:10 +00:00
..