All files / components/result/addons ResultCardImage.jsx

80% Statements 4/5
100% Branches 0/0
50% Functions 1/2
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18      1x           25x 25x     1x        
import VueTypes from 'vue-types';
import { Image } from '../../../styles/Card';
 
const ResultCardImage = {
	name: 'ResultCardImage',
	props: {
		src: VueTypes.string.isRequired,
	},
	render() {
		const { src, ...props } = this.$props;
		return <Image style={{ backgroundImage: `url(${src})` }} {...props} />;
	},
};
ResultCardImage.install = function(Vue) {
	Vue.component(ResultCardImage.name, ResultCardImage);
};
export default ResultCardImage;