Prettified

This commit is contained in:
Leah Schumann 2023-06-30 07:35:04 -04:00
parent 2a89764989
commit 842bd8a20a

View file

@ -119,7 +119,7 @@ const mockGetShopTimeSlotsGoodAvailability = {
],
},
],
}
},
};
const mockGetShopTimeSlotsLowAvailability = {
@ -139,7 +139,7 @@ const mockGetShopTimeSlotsLowAvailability = {
],
},
],
}
},
};
jest.mock("@/mixins/base-mixin.js", () => ({
@ -188,7 +188,7 @@ jest.mock("@/mixins/base-mixin.js", () => ({
}
if (actionName === mockStoreActionGetShopTimeSlots) {
console.log(request)
console.log(request);
if (request.providerNumber == "0000001") {
return Promise.resolve(mockGetShopTimeSlotsGoodAvailability);
}
@ -276,7 +276,12 @@ describe("service-location-helper.js", () => {
const providerNumber = "0000001";
const expected = "high";
// Act
const result = await getAvailabilityRating("2023-06-30", "2023-07-06", "Inshop", providerNumber);
const result = await getAvailabilityRating(
"2023-06-30",
"2023-07-06",
"Inshop",
providerNumber
);
// Assert
expect(result).toEqual(expected);
@ -287,7 +292,12 @@ describe("service-location-helper.js", () => {
const providerNumber = "0000000";
const expected = "low";
// Act
const result = await getAvailabilityRating("2023-06-30", "2023-07-06", "Inshop", providerNumber);
const result = await getAvailabilityRating(
"2023-06-30",
"2023-07-06",
"Inshop",
providerNumber
);
// Assert
expect(result).toEqual(expected);