Update unit test.

This commit is contained in:
bmauger 2022-02-10 13:56:31 -05:00
parent bb2088c8ff
commit 1930bef12c

View file

@ -1,8 +1,8 @@
<template>
<a v-if="href && linkType === 'navigation'" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
<a v-else-if="href && linkType === 'footer'" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
<a v-else-if="href && linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
<a v-else-if="href && linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
<a v-if="linkType === 'navigation'" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
<a v-else-if="linkType === 'footer'" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
<a v-else-if="linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
<a v-else-if="linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
</template>
<script>
@ -17,9 +17,6 @@ export default {
},
methods: {
handleClick(event) {
if(this.href === "#" || this.href.length < 1) {
event.preventDefault();
}
this.$emit("click-event");
},
},