feat: add unit and integration tests for rental management domain

- Introduced RentPaymentCorrectionTest and RentPaymentTest to validate payment and refund logic.
- Added PhoneNumberTest to ensure proper normalization of phone numbers.
- Created TenantTest to verify attachment management and tenant referencing.
- Implemented ReplacementRentalApiJourneyIT for end-to-end testing of rental and payment workflows.
- Documented architectural decisions in ADR-0014, emphasizing strict DDD boundaries and transaction management.
This commit is contained in:
nessar committed 2026-08-17 14:18:15 +02:00
1 parent 6ce0719a20
commit e02ad54bcb
263 files changed
+10847 -7183

No files matched your search

@@ -16,6 +16,7 @@ describe('SettingsPage', () => {
const session = {
username: signal('Camille Martin'),
email: signal('camille@example.com'),
logout: vi.fn(),
};
const theme = {
preference: signal('system'),
@@ -48,9 +49,7 @@ describe('SettingsPage', () => {
await fixture.whenStable();
expect(fixture.nativeElement.querySelector('input#firstName').value).toBe('Camille');
expect(fixture.nativeElement.querySelector('input#email').value).toBe(
'camille@example.com',
);
expect(fixture.nativeElement.querySelector('input#email').value).toBe('camille@example.com');
expect(fixture.nativeElement.querySelector('input#address').value).toBe('1 rue de Paris');
});
@@ -66,7 +66,7 @@ export class SettingsPage {
}
logout(): void {
window.location.href = '/logout';
this.session.logout();
}
loadProfile(): void {