Prettified

This commit is contained in:
Leah Schumann 2023-05-18 08:47:32 -04:00
parent 49d6eb3a72
commit 192db1177b
4 changed files with 19 additions and 25 deletions

View file

@ -51,7 +51,7 @@ describe("object-cloning-helper.js", () => {
const array = [9, 8, 7, 6, 5, 4, 3, 2, 1]; const array = [9, 8, 7, 6, 5, 4, 3, 2, 1];
const expected = [9, 8, 7, 6, 5, 4, 3, 2, 1];; const expected = [9, 8, 7, 6, 5, 4, 3, 2, 1];
// Act // Act
const result = deepClone(array); const result = deepClone(array);

View file

@ -4,8 +4,7 @@ import { storeActions } from "@/constants/store-actions";
const mockStoreActionGetMobileFeePart = storeActions.GET_MOBILE_FEE_PART; const mockStoreActionGetMobileFeePart = storeActions.GET_MOBILE_FEE_PART;
const mockStoreActionPriceOrderItemsAndSaveServerData = const mockStoreActionPriceOrderItemsAndSaveServerData =
storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA; storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA;
const mockStoreActionGetServiceabilityDetails = const mockStoreActionGetServiceabilityDetails = storeActions.GET_SERVICEABILITY_DETAILS;
storeActions.GET_SERVICEABILITY_DETAILS;
jest.mock("@/mixins/base-mixin.js", () => ({ jest.mock("@/mixins/base-mixin.js", () => ({
methods: { methods: {
@ -44,14 +43,12 @@ jest.mock("@/mixins/base-mixin.js", () => ({
} }
if (actionName === mockStoreActionGetServiceabilityDetails) { if (actionName === mockStoreActionGetServiceabilityDetails) {
return Promise.resolve( return Promise.resolve({
{ isGlassServiceableInshop: true,
isGlassServiceableInshop: true, isRecalibrationServiceableInshop: true,
isRecalibrationServiceableInshop: true, isGlassServiceableMobile: true,
isGlassServiceableMobile: true, isRecalibrationServiceableMobile: true,
isRecalibrationServiceableMobile: true });
},
);
} }
}), }),
}, },
@ -117,7 +114,7 @@ describe("service-location-helper.js", () => {
isGlassServiceableInshop: true, isGlassServiceableInshop: true,
isRecalibrationServiceableInshop: true, isRecalibrationServiceableInshop: true,
isGlassServiceableMobile: true, isGlassServiceableMobile: true,
isRecalibrationServiceableMobile: true isRecalibrationServiceableMobile: true,
}; };
// Act // Act
@ -127,5 +124,4 @@ describe("service-location-helper.js", () => {
expect(result).toEqual(expected); expect(result).toEqual(expected);
}); });
}); });
}); });

View file

@ -540,7 +540,6 @@ describe("service-location.vue", () => {
// Assert // Assert
expect(wrapper.vm.selectedAppointmentType).toStrictEqual("Mobile"); expect(wrapper.vm.selectedAppointmentType).toStrictEqual("Mobile");
}); });
}); });
describe("serviceability logic", () => { describe("serviceability logic", () => {

View file

@ -486,7 +486,6 @@ describe("shop-question.vue", () => {
// Assert // Assert
expect(wrapper.vm.answers.length).toEqual(3); expect(wrapper.vm.answers.length).toEqual(3);
}); });
}); });
function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) { function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) {