corrected test

This commit is contained in:
Jason Wheeler 2023-01-17 17:05:14 -05:00
parent 832f566060
commit b56735bc6d

View file

@ -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({
},
},
},
})
);