test
This commit is contained in:
parent
3fc7c0bde7
commit
aa4cd108c1
1 changed files with 2 additions and 13 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue