fix(tests): Update test assertions and singleton instance references in DMARC, integration, and IP warmup manager tests

This commit is contained in:
2025-05-07 22:15:08 +00:00
parent f704dc78aa
commit ba39392c1b
7 changed files with 80 additions and 63 deletions

View File

@ -1,5 +1,15 @@
# Changelog
## 2025-05-07 - 2.4.2 - fix(tests)
Update test assertions and singleton instance references in DMARC, integration, and IP warmup manager tests
- In test.emailauth.ts, update expected DMARC policy from 'none' to 'reject' and verify actualPolicy and action accordingly
- In test.integration.ts, remove deprecated casting and adjust dedicated policy naming (use 'dedicated' instead of 'dedicatedDomain')
- In test.ipwarmupmanager.ts and test.reputationmonitor.ts, replace singleton reset from '_instance' to 'instance' for proper instance access
- Update round robin allocation tests to verify IP cycle returns one of the available IPs
- Enhance daily limit tests by verifying getBestIPForSending returns null when limit is reached
- General refactoring across tests for improved clarity and consistency
## 2025-05-07 - 2.4.1 - fix(tests)
Update test assertions and refine service interfaces