Fix failing test on main (#10499)

* mock popuproutercache to fix failing test

* add `OnInit` implementation to fix linting

* Revert "add `OnInit` implementation to fix linting"

This reverts commit 50adcacba3.
This commit is contained in:
Nick Krantz 2024-08-13 09:12:48 -05:00 committed by GitHub
parent 127811166b
commit 5ce5f836e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
import { CipherType } from "@bitwarden/common/vault/enums";
import { PopupRouterCacheService } from "../../../../../platform/popup/view-cache/popup-router-cache.service";
import { ViewV2Component } from "./view-v2.component";
// 'qrcode-parser' is used by `BrowserTotpCaptureService` but is an es6 module that jest can't compile.
@ -44,6 +46,7 @@ describe("ViewV2Component", () => {
{ provide: LogService, useValue: mock<LogService>() },
{ provide: PlatformUtilsService, useValue: mock<PlatformUtilsService>() },
{ provide: ConfigService, useValue: mock<ConfigService>() },
{ provide: PopupRouterCacheService, useValue: mock<PopupRouterCacheService>() },
{ provide: ActivatedRoute, useValue: { queryParams: params$ } },
{
provide: I18nService,