diff --git a/admin/src/components/CreationFormular.vue b/admin/src/components/CreationFormular.vue index 6e47812be..d73ea3c81 100644 --- a/admin/src/components/CreationFormular.vue +++ b/admin/src/components/CreationFormular.vue @@ -241,7 +241,7 @@ export default { .then((result) => { this.$emit('update-user-data', this.item, result.data.createPendingCreation) this.$toasted.success( - `Offene schöpfung (${this.value} GDD) für ${this.item.email} wurde gespeichert, liegen zur bestätigung bereit`, + `Offene Schöpfung (${this.value} GDD) für ${this.item.email} wurde gespeichert und liegen zur Bestätigung bereit`, ) this.$store.commit('openCreationsPlus', 1) this.submitObj = null diff --git a/admin/src/components/EditCreationFormular.spec.js b/admin/src/components/EditCreationFormular.spec.js index dd503411a..968525613 100644 --- a/admin/src/components/EditCreationFormular.spec.js +++ b/admin/src/components/EditCreationFormular.spec.js @@ -3,14 +3,6 @@ import EditCreationFormular from './EditCreationFormular.vue' const localVue = global.localVue -const apolloMock = jest.fn().mockResolvedValue({ - data: { - verifyLogin: { - name: 'success', - id: 0, - }, - }, -}) const apolloMutateMock = jest.fn().mockResolvedValue({ data: { updatePendingCreation: { @@ -21,6 +13,7 @@ const apolloMutateMock = jest.fn().mockResolvedValue({ }, }, }) + const stateCommitMock = jest.fn() const mocks = { @@ -35,7 +28,6 @@ const mocks = { } }), $apollo: { - query: apolloMock, mutate: apolloMutateMock, }, $store: { @@ -71,23 +63,6 @@ describe('EditCreationFormular', () => { expect(wrapper.find('.component-edit-creation-formular').exists()).toBeTruthy() }) - describe('server sends back moderator data', () => { - it('called store commit with mocked data', () => { - expect(stateCommitMock).toBeCalledWith('moderator', { name: 'success', id: 0 }) - }) - }) - - describe('server throws error for moderator data call', () => { - beforeEach(() => { - jest.clearAllMocks() - apolloMock.mockRejectedValue({ message: 'Ouch!' }) - wrapper = Wrapper() - }) - it('has called store commit with fake data', () => { - expect(stateCommitMock).toBeCalledWith('moderator', { id: 0, name: 'Test Moderator' }) - }) - }) - describe('radio buttons to selcet month', () => { it('has three radio buttons', () => { expect(wrapper.findAll('input[type="radio"]').length).toBe(3) diff --git a/admin/src/components/EditCreationFormular.vue b/admin/src/components/EditCreationFormular.vue index bda48569a..3a1c91a02 100644 --- a/admin/src/components/EditCreationFormular.vue +++ b/admin/src/components/EditCreationFormular.vue @@ -124,7 +124,6 @@