Updated test descriptions
This commit is contained in:
parent
f51ad89ef4
commit
cf0cfcf001
1 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ const mockMixin = {
|
||||||
|
|
||||||
describe("vehicleBanner", () => {
|
describe("vehicleBanner", () => {
|
||||||
|
|
||||||
test("renders the blurrycar image", async () => {
|
test("renders the blurrycar image when displayGenericVehicleImage is true", async () => {
|
||||||
|
|
||||||
const wrapper = shallowMount(vehicleBanner, {
|
const wrapper = shallowMount(vehicleBanner, {
|
||||||
propsData: {
|
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;
|
store.order.vehicle.imageUrl = null;
|
||||||
|
|
||||||
|
|
@ -101,7 +101,7 @@ describe("vehicleBanner", () => {
|
||||||
["SUV", "suv-placeholder.jpg"],
|
["SUV", "suv-placeholder.jpg"],
|
||||||
["OTHER", "car-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.imageUrl = null;
|
||||||
store.order.vehicle.category = category;
|
store.order.vehicle.category = category;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue