This commit is contained in:
Jason Wheeler 2022-11-16 10:45:16 -05:00
parent 3fc7c0bde7
commit aa4cd108c1

View file

@ -23,9 +23,6 @@ jest.mock("@/helpers/cms-content-helper", () => ({
})); }));
describe("vehicle-style.vue", () => { describe("vehicle-style.vue", () => {
beforeEach(() => {
jest.clearAllMocks();
});
test("Style question component is initized with api data", async () => { test("Style question component is initized with api data", async () => {
//Arrange //Arrange
@ -87,26 +84,18 @@ describe("vehicle-style.vue", () => {
}); });
}); });
/*
test("Model set, arePagePrerequisitesValid should be true ", () => { test("Model set, arePagePrerequisitesValid should be true ", () => {
//Arrange //Arrange
const { wrapper } = setupMocks({}); const { wrapper } = setupMocks({});
useMainStore().order.vehicle = { year: 2011, make: "ford", model: "mustang", style: null } useMainStore().order.vehicle = { year: 2011, make: "ford", model: "mustang", style: null }
//Act //Act
vehicleStyle.beforeRouteEnter.call( const arePagePrerequisitesValid = wrapper.vm.arePagePrerequisitesValid();
wrapper.vm,
{ query: { issPage: "vehicle-style" } },
undefined,
(c) => c(wrapper.vm)
);
let arePagePrerequisitesValid = wrapper.vm.arePagePrerequisitesValid();
//Assert //Assert
expect(arePagePrerequisitesValid).toBe(true); expect(arePagePrerequisitesValid).toBe(true);
}); });
*/
}); });