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:
@@ -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>;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user