1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 22:13:32 +00:00

Mock svg icons for CI

This commit is contained in:
Jeffrey Holland
2025-08-28 16:39:05 +02:00
parent 69ddbb1b51
commit 87fc48b370
3 changed files with 18 additions and 0 deletions

View File

@@ -23,6 +23,13 @@ import {
import { Fido2CreateComponent } from "./fido2-create.component";
jest.mock("./bitwarden-shield.icon", () => ({
BitwardenShield: {},
}));
jest.mock("./fido2-passkey-exists-icon", () => ({
Fido2PasskeyExistsIcon: {},
}));
describe("Fido2CreateComponent", () => {
let component: Fido2CreateComponent;
let mockDesktopSettingsService: MockProxy<DesktopSettingsService>;

View File

@@ -14,6 +14,13 @@ import {
import { Fido2ExcludedCiphersComponent } from "./fido2-excluded-ciphers.component";
jest.mock("./bitwarden-shield.icon", () => ({
BitwardenShield: {},
}));
jest.mock("./fido2-passkey-exists-icon", () => ({
Fido2PasskeyExistsIcon: {},
}));
describe("Fido2ExcludedCiphersComponent", () => {
let component: Fido2ExcludedCiphersComponent;
let fixture: ComponentFixture<Fido2ExcludedCiphersComponent>;

View File

@@ -18,6 +18,10 @@ import {
DesktopFido2UserInterfaceSession,
} from "../../services/desktop-fido2-user-interface.service";
jest.mock("./bitwarden-shield.icon", () => ({
BitwardenShield: {},
}));
import { Fido2VaultComponent } from "./fido2-vault.component";
describe("Fido2VaultComponent", () => {