fix tests

This commit is contained in:
einhornimmond 2025-02-24 18:48:02 +01:00
parent 472c7598ad
commit d2e899541e
4 changed files with 4 additions and 8 deletions

View File

@ -20,9 +20,7 @@
<script setup>
import { computed, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import LabeledInput from './LabeledInput'
import { translateYupErrorString } from '@/validationSchemas'
const props = defineProps({
label: {
@ -40,8 +38,6 @@ const props = defineProps({
},
})
const { t } = useI18n()
const model = ref(props.modelValue)
const valid = computed(() => {
@ -61,7 +57,7 @@ const errorMessage = computed(() => {
props.rules.validateSync(props.modelValue)
return undefined
} catch (e) {
return translateYupErrorString(e.message, t)
return e.message
}
})

View File

@ -44,8 +44,8 @@
"denied": "Abgelehnt",
"open": "Offen"
},
"copy-to-clipboard": "In die Zwischenablage kopieren",
"copied-to-clipboard": "In die Zwischenablage kopiert",
"copy-to-clipboard": "In die Zwischenablage kopieren",
"created": "Geschöpft",
"createdAt": "Angelegt",
"creation": "Schöpfung",

View File

@ -44,8 +44,8 @@
"denied": "Rejected",
"open": "Open"
},
"copy-to-clipboard": "Copy to clipboard",
"copied-to-clipboard": "Copied to clipboard",
"copy-to-clipboard": "Copy to clipboard",
"created": "Created for",
"createdAt": "Created at",
"creation": "Creation",

View File

@ -153,7 +153,7 @@ describe('ContributionMessageResolver', () => {
message: 'Test',
},
})
expect(logger.debug).toBeCalledTimes(9)
expect(logger.debug).toBeCalledTimes(8)
expect(logger.debug).toHaveBeenNthCalledWith(
8,
'use UnconfirmedContributionUserAddMessageRole',