CASH-1428 - Fixed unit test

This commit is contained in:
Minojhini Valaiyapathi 2025-09-18 18:33:10 -04:00
parent f4da6c9bad
commit af0f9c2bd8

View file

@ -7,6 +7,9 @@ import { getMountOptions } from "@/helpers/unit-test-helper.js";
import store from "@/store";
import { experimentSettings } from "@/constants/experiments";
global.crypto = {
randomUUID: jest.fn()
};
// Mock our module for promises.
jest.mock("@/helpers/layout-helper.js", () => ({
settleAllPromises: jest.fn(),
@ -81,7 +84,10 @@ function setupMocks() {
city: "Anytown",
state: "OH",
zipCode: "00000",
provider: { providerNumber: "0000567"}
},
vehicle: { year: 2020, make: "Toyota", model: "Camry", carId:"12345" },
damage: {isRepair: false}
},
policy: {
currentDeductible: 123,