CASH-1428 - Fixed unit test
This commit is contained in:
parent
f4da6c9bad
commit
af0f9c2bd8
1 changed files with 6 additions and 0 deletions
|
|
@ -7,6 +7,9 @@ import { getMountOptions } from "@/helpers/unit-test-helper.js";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { experimentSettings } from "@/constants/experiments";
|
import { experimentSettings } from "@/constants/experiments";
|
||||||
|
|
||||||
|
global.crypto = {
|
||||||
|
randomUUID: jest.fn()
|
||||||
|
};
|
||||||
// Mock our module for promises.
|
// Mock our module for promises.
|
||||||
jest.mock("@/helpers/layout-helper.js", () => ({
|
jest.mock("@/helpers/layout-helper.js", () => ({
|
||||||
settleAllPromises: jest.fn(),
|
settleAllPromises: jest.fn(),
|
||||||
|
|
@ -81,7 +84,10 @@ function setupMocks() {
|
||||||
city: "Anytown",
|
city: "Anytown",
|
||||||
state: "OH",
|
state: "OH",
|
||||||
zipCode: "00000",
|
zipCode: "00000",
|
||||||
|
provider: { providerNumber: "0000567"}
|
||||||
},
|
},
|
||||||
|
vehicle: { year: 2020, make: "Toyota", model: "Camry", carId:"12345" },
|
||||||
|
damage: {isRepair: false}
|
||||||
},
|
},
|
||||||
policy: {
|
policy: {
|
||||||
currentDeductible: 123,
|
currentDeductible: 123,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue