mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
fix tests
This commit is contained in:
@@ -12,6 +12,7 @@ import { MessagingService } from "@bitwarden/common/platform/abstractions/messag
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { ThemeType } from "@bitwarden/common/platform/enums";
|
||||
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
||||
import { VaultSettingsService } from "@bitwarden/common/vault/abstractions/vault-settings/vault-settings.service";
|
||||
|
||||
import { PopupCompactModeService } from "../../../platform/popup/layout/popup-compact-mode.service";
|
||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||
@@ -36,7 +37,9 @@ class MockPopupHeaderComponent {
|
||||
selector: "popup-page",
|
||||
template: `<ng-content></ng-content>`,
|
||||
})
|
||||
class MockPopupPageComponent {}
|
||||
class MockPopupPageComponent {
|
||||
@Input() loading: boolean;
|
||||
}
|
||||
|
||||
describe("AppearanceV2Component", () => {
|
||||
let component: AppearanceV2Component;
|
||||
@@ -98,6 +101,10 @@ describe("AppearanceV2Component", () => {
|
||||
provide: PopupSizeService,
|
||||
useValue: mockWidthService,
|
||||
},
|
||||
{
|
||||
provide: VaultSettingsService,
|
||||
useValue: mock<VaultSettingsService>(),
|
||||
},
|
||||
],
|
||||
})
|
||||
.overrideComponent(AppearanceV2Component, {
|
||||
|
||||
Reference in New Issue
Block a user