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
UNCOV
1
|
import MultiLineToast from '@/components/toast/MultiLineToast.vue' |
|
UNCOV
2
|
import i18n from '@/plugins/i18n' |
× |
UNCOV
3
|
import { violationsToFlatArray } from '@/helpers/serverError' |
× |
UNCOV
4
|
|
× |
UNCOV
5
|
function multiLineToast(lines) { |
× |
6 |
return {
|
× |
UNCOV
7
|
component: MultiLineToast,
|
× |
UNCOV
8
|
props: {
|
× |
UNCOV
9
|
lines, |
× |
UNCOV
10
|
generalErrorText: i18n.tc('components.toast.toasts.multiLineToast.generalError'), |
× |
UNCOV
11
|
}, |
× |
UNCOV
12
|
} |
× |
UNCOV
13
|
} |
× |
UNCOV
14
|
|
× |
UNCOV
15
|
function errorToMultiLineToast(error) { |
× |
16 |
return multiLineToast(violationsToFlatArray(error, i18n))
|
× |
UNCOV
17
|
} |
× |
UNCOV
18
|
|
× |
UNCOV
19
|
export { errorToMultiLineToast, multiLineToast }
|
× |