Fixing unit test
This commit is contained in:
parent
d7908620a7
commit
2ae7cdfe37
1 changed files with 2 additions and 10 deletions
|
|
@ -62,17 +62,9 @@ describe("vehicleBanner", () => {
|
|||
const { wrapper, cmsContent } = setupMocks({ displayGenericVehicleImageProp: false, imageUrlValue: expectedIcon, categoryValue: category });
|
||||
//Act
|
||||
var vehicleIcon = wrapper.vm.getUnmatchedVehicleIcon();
|
||||
|
||||
// Assert
|
||||
// expect(wrapper.vm.carUnmatchedVehicleIcon).toEqual(cmsContent.CarUnmatchedVehicleIcon);
|
||||
// expect(wrapper.vm.truckUnmatchedVehicleIcon).toEqual(cmsContent.TruckUnmatchedVehicleIcon);
|
||||
// expect(wrapper.vm.vanUnmatchedVehicleIcon).toEqual(cmsContent.VanUnmatchedVehicleIcon);
|
||||
// expect(wrapper.vm.commercialUnmatchedVehicleIcon).toEqual(cmsContent.CommercialVanUnmatchedVehicleIcon);
|
||||
// expect(wrapper.vm.suvUnmatchedVehicleIcon).toEqual(cmsContent.SuvUnmatchedVehicleIcon);
|
||||
|
||||
// expect(store.getters.vehicle.category).toEqual(category);
|
||||
// expect(wrapper.vm.vehicleImageToDisplay).toEqual(vehicleIcon);
|
||||
// expect(wrapper.find("img").attributes("class")).toContain("vehicle-image");
|
||||
expect(store.getters.vehicle.category).toEqual(category);
|
||||
expect(wrapper.find("img").attributes("class")).toContain("vehicle-image");
|
||||
wrapper.unmount();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue