push
github
503 of 772 branches covered (0.0%)
34 of 65 new or added lines in 14 files covered. (52.31%)
13502 existing lines in 185 files now uncovered.9060 of 34265 relevant lines covered (26.44%)
11.53 hits per line
1 |
<template>
|
1✔ |
2 |
<div> |
1✔ |
3 |
<span v-if="errorList.length === 1">{{ errorList[0] }}</span> |
1✔ |
4 |
<ul v-else>
|
1✔ |
5 |
<li v-for="(error, index) in errorList" :key="index"> |
1✔ |
6 |
{{ error }} |
1✔ |
7 |
</li> |
1✔ |
8 |
</ul> |
1✔ |
9 |
</div> |
1✔ |
10 |
</template>
|
1✔ |
11 |
|
1✔ |
12 |
<script> |
1✔ |
13 |
import { violationsToFlatArray } from '@/helpers/serverError' |
1✔ |
14 |
|
1✔ |
15 |
export default { |
1✔ |
16 |
name: 'ServerErrorContent', |
1✔ |
17 |
props: { |
1✔ |
18 |
serverError: {
|
1✔ |
19 |
type: [Object, String, Error],
|
1✔ |
20 |
default: null,
|
1✔ |
21 |
}, |
1✔ |
22 |
}, |
1✔ |
23 |
computed: {
|
1✔ |
UNCOV
24
|
errorList() { |
× |
UNCOV
25
|
return violationsToFlatArray(this.serverError, this.$i18n) |
× |
UNCOV
26
|
}, |
× |
27 |
}, |
1✔ |
28 |
} |
1✔ |
29 |
</script> |
1✔ |