prettier
This commit is contained in:
parent
9f35810aee
commit
ed8aefd675
5 changed files with 11 additions and 11 deletions
|
|
@ -77,7 +77,9 @@ export function getMountOptions(mockData) {
|
||||||
mixins: mockData.mixins,
|
mixins: mockData.mixins,
|
||||||
stubs: { Form },
|
stubs: { Form },
|
||||||
computed: {
|
computed: {
|
||||||
pageName() { return mockData?.route?.name },
|
pageName() {
|
||||||
|
return mockData?.route?.name;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const props = mockData.propsData || {};
|
const props = mockData.propsData || {};
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ function setupMocks({
|
||||||
navigateWithoutSaving: jest.fn(),
|
navigateWithoutSaving: jest.fn(),
|
||||||
},
|
},
|
||||||
route: {
|
route: {
|
||||||
name: "estimate"
|
name: "estimate",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}) {
|
}) {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jest.mock("@/mixins/base-mixin.js", () => ({
|
||||||
return {
|
return {
|
||||||
navigationScenarios: {
|
navigationScenarios: {
|
||||||
CLICKED_BACK: "clicked_back",
|
CLICKED_BACK: "clicked_back",
|
||||||
CLICKED_PAY_ON_MY_OWN: "clicked_pay_on_my_own"
|
CLICKED_PAY_ON_MY_OWN: "clicked_pay_on_my_own",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
async startOver() {
|
async startOver() {
|
||||||
this.pushEventToGA(
|
this.pushEventToGA(this.pageName, this.GaActions.CLICKED, "Start over", true);
|
||||||
this.pageName,
|
|
||||||
this.GaActions.CLICKED,
|
|
||||||
"Start over",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
this.$router.navigateWithoutSaving(
|
this.$router.navigateWithoutSaving(
|
||||||
this.navigationScenarios.CLICKED_RESTART,
|
this.navigationScenarios.CLICKED_RESTART,
|
||||||
this.pageName
|
this.pageName
|
||||||
|
|
|
||||||
|
|
@ -305,7 +305,10 @@ describe("vehicle-questions-mixin", () => {
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
const result = wrapper.vm.currentPageComesBeforePage(currentPage.name, nextPage.name);
|
const result = wrapper.vm.currentPageComesBeforePage(
|
||||||
|
currentPage.name,
|
||||||
|
nextPage.name
|
||||||
|
);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(result).toEqual(expectedResult);
|
expect(result).toEqual(expectedResult);
|
||||||
|
|
@ -2419,7 +2422,7 @@ function setupMocks({ fmgPage = routeData.VIN_LOOKUP.name, hasVin, carId }) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
route: {
|
route: {
|
||||||
name: fmgPage
|
name: fmgPage,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue