diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..3b6641073 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "git.ignoreLimitWarning": true +} \ No newline at end of file diff --git a/admin/src/components/ConfirmRegisterMailFormular.spec.js b/admin/src/components/ConfirmRegisterMailFormular.spec.js index 8872128e9..705a185a3 100644 --- a/admin/src/components/ConfirmRegisterMailFormular.spec.js +++ b/admin/src/components/ConfirmRegisterMailFormular.spec.js @@ -8,6 +8,7 @@ const toastSuccessMock = jest.fn() const toastErrorMock = jest.fn() const mocks = { + $t: jest.fn((t) => t), $apollo: { mutate: apolloMutateMock, }, @@ -52,9 +53,7 @@ describe('ConfirmRegisterMailFormular', () => { }) it('toasts a success message', () => { - expect(toastSuccessMock).toBeCalledWith( - 'Erfolgreich senden der Confirmation Link an die E-Mail des Users! bob@baumeister.de', - ) + expect(toastSuccessMock).toBeCalledWith('unregister_mail.success') }) }) @@ -66,9 +65,7 @@ describe('ConfirmRegisterMailFormular', () => { }) it('toasts an error message', () => { - expect(toastErrorMock).toBeCalledWith( - 'Fehler beim senden des confirmation link an den Benutzer: OUCH!', - ) + expect(toastErrorMock).toBeCalledWith('unregister_mail.error') }) }) }) diff --git a/admin/src/components/ConfirmRegisterMailFormular.vue b/admin/src/components/ConfirmRegisterMailFormular.vue index 866e8a487..5052a8a3e 100644 --- a/admin/src/components/ConfirmRegisterMailFormular.vue +++ b/admin/src/components/ConfirmRegisterMailFormular.vue @@ -2,17 +2,15 @@