mirror of
https://github.com/bitwarden/browser
synced 2025-12-30 07:03:26 +00:00
UIF - Prefer signal & change detection (#16940)
This commit is contained in:
@@ -13,6 +13,8 @@ describe("SwitchComponent", () => {
|
||||
let switchComponent: SwitchComponent;
|
||||
let inputEl: HTMLInputElement;
|
||||
|
||||
// TODO: Fix this the next time the file is edited.
|
||||
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||
@Component({
|
||||
selector: "test-host",
|
||||
imports: [FormsModule, BitLabel, ReactiveFormsModule, SwitchModule],
|
||||
@@ -70,6 +72,8 @@ describe("SwitchComponent", () => {
|
||||
});
|
||||
|
||||
it("should update checked when selected input changes outside of a form", async () => {
|
||||
// TODO: Fix this the next time the file is edited.
|
||||
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||
@Component({
|
||||
selector: "test-selected-host",
|
||||
template: `<bit-switch [selected]="checked"><bit-label>Element</bit-label></bit-switch>`,
|
||||
|
||||
Reference in New Issue
Block a user