From cf0cfcf00122bd2016cef5dc8d14e84fe08eb1e9 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Thu, 27 Oct 2022 11:31:52 -0400 Subject: [PATCH] Updated test descriptions --- src/common-components/vehicle-banner/vehicle-banner.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common-components/vehicle-banner/vehicle-banner.spec.js b/src/common-components/vehicle-banner/vehicle-banner.spec.js index 14c5a318..f36dd257 100644 --- a/src/common-components/vehicle-banner/vehicle-banner.spec.js +++ b/src/common-components/vehicle-banner/vehicle-banner.spec.js @@ -42,7 +42,7 @@ const mockMixin = { describe("vehicleBanner", () => { - test("renders the blurrycar image", async () => { + test("renders the blurrycar image when displayGenericVehicleImage is true", async () => { const wrapper = shallowMount(vehicleBanner, { propsData: { @@ -75,7 +75,7 @@ describe("vehicleBanner", () => { }); - test("should render car icon when imageUrl is null and category is default", async () => { + test("should render default car icon when imageUrl is null and category is default", async () => { store.order.vehicle.imageUrl = null; @@ -101,7 +101,7 @@ describe("vehicleBanner", () => { ["SUV", "suv-placeholder.jpg"], ["OTHER", "car-placeholder.jpg"]]; - test.each(params)("renders an icon instead of an image for %s and %s", async (category, expectedIcon) => { + test.each(params)("renders correct icon when imageUrl is not populated for %s and %s", async (category, expectedIcon) => { store.order.vehicle.imageUrl = null; store.order.vehicle.category = category;