feat(checkout): implement authentication guard for checkout route and add bank account service

This commit is contained in:
2026-07-03 14:07:57 -03:00
parent 0a2d999c00
commit 3971970975
8 changed files with 81 additions and 6 deletions

View File

@@ -154,7 +154,7 @@ describe('StoreLayoutComponent', () => {
const fixture = TestBed.createComponent(StoreLayoutComponent);
fixture.detectChanges();
fixture.componentInstance.isCartOpen.set(true);
(fixture.componentInstance as any).isCartOpen.set(true);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
@@ -166,6 +166,6 @@ describe('StoreLayoutComponent', () => {
fixture.detectChanges();
expect(router.navigate).toHaveBeenCalledWith(['/checkout']);
expect(fixture.componentInstance.isCartOpen()).toBe(false);
expect((fixture.componentInstance as any).isCartOpen()).toBe(false);
});
});