Merge pull request #80 from Safelite/feature/CSR-120_vehicle-banner-2

CSR-120: make prop required
This commit is contained in:
AdamCaouetteSafelite 2021-12-06 12:59:28 -05:00 committed by GitHub
commit a1f52cb959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -1,16 +1,16 @@
import { shallowMount } from '@vue/test-utils';
import vehicleBanner from './vehicle-banner';
import { getMountOptions } from "@/helpers/unit-test-helper.js";
describe('vehicleBanner', () => {
test('renders the blurrycar image', () => {
// Arrange
const mountOptions = getMountOptions({});
// Act
const wrapper = shallowMount(vehicleBanner, {
...mountOptions
propsData: {
vehicleImageSrc: "image_url",
},
});
// Assert

View file

@ -12,7 +12,10 @@
export default {
name: "vehicle-banner",
props: {
vehicleImageSrc: String
vehicleImageSrc: {
type: String,
required: true
}
},
}
</script>