corrected test
This commit is contained in:
parent
832f566060
commit
b56735bc6d
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import { shallowMount } from "@vue/test-utils";
|
|||
import { getMountOptions } from "@/helpers/unit-test-helper.js";
|
||||
import { useMainStore } from "@/store";
|
||||
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
||||
import e from "express";
|
||||
|
||||
jest.mock("@/helpers/damage-helper", () => ({
|
||||
isGlassAvailableForCarId: jest.fn().mockImplementation(() => true),
|
||||
|
|
@ -472,6 +473,7 @@ describe("address-lookup.vue", () => {
|
|||
},
|
||||
},
|
||||
],
|
||||
route: { query: "address-lookup" },
|
||||
});
|
||||
|
||||
useMainStore().order.vehicle.carId = "CARID";
|
||||
|
|
@ -582,6 +584,7 @@ function setupMocks({
|
|||
isStatePermissible = true,
|
||||
vinVehicles = [],
|
||||
carId = "C0000",
|
||||
route = null,
|
||||
})
|
||||
{
|
||||
|
||||
|
|
@ -623,6 +626,7 @@ function setupMocks({
|
|||
const wrapper = shallowMount(
|
||||
addressLookup,
|
||||
getMountOptions({
|
||||
route: route ? route : undefined,
|
||||
router: {
|
||||
navigate: jest.fn(),
|
||||
},
|
||||
|
|
@ -643,6 +647,7 @@ function setupMocks({
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue