mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
[CL-707] Migrate CL codebase to signals (#15340)
This commit is contained in:
@@ -20,6 +20,6 @@ export class PopupBackBrowserDirective extends BitActionDirective {
|
||||
super(buttonComponent, validationService, logService);
|
||||
|
||||
// override `bitAction` input; the parent handles the rest
|
||||
this.handler = () => this.router.back();
|
||||
this.handler.set(() => this.router.back());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ describe("NavigationProductSwitcherComponent", () => {
|
||||
|
||||
const navItem = fixture.debugElement.query(By.directive(NavItemComponent));
|
||||
|
||||
expect(navItem.componentInstance.forceActiveStyles).toBe(true);
|
||||
expect(navItem.componentInstance.forceActiveStyles()).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ describe("VaultBannersComponent", () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
const banner = fixture.debugElement.query(By.directive(BannerComponent));
|
||||
expect(banner.componentInstance.bannerType).toBe("premium");
|
||||
expect(banner.componentInstance.bannerType()).toBe("premium");
|
||||
});
|
||||
|
||||
it("dismisses premium banner", async () => {
|
||||
|
||||
Reference in New Issue
Block a user