From 3e894d36bd00e3a5d46cd24bb6a2c34544a2b54a Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 14 Feb 2023 17:17:17 +0100 Subject: [PATCH] fix linting, raise coverage --- admin/src/locales/de.json | 1 - admin/src/locales/en.json | 1 - admin/src/pages/ContributionLinks.spec.js | 5 +- admin/src/pages/CreationConfirm.vue | 594 +++++++++++----------- 4 files changed, 300 insertions(+), 301 deletions(-) diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index f870c1ceb..00eef1812 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -108,7 +108,6 @@ "automaticContributions": "Automatische Beiträge", "logout": "Abmelden", "my-account": "Mein Konto", - "open_creation": "Offene Schöpfungen", "statistic": "Statistik", "user_search": "Nutzersuche" }, diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index ce5973920..f8217dfc3 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -108,7 +108,6 @@ "automaticContributions": "Automatic Contributions", "logout": "Logout", "my-account": "My Account", - "open_creation": "Open creations", "statistic": "Statistic", "user_search": "User search" }, diff --git a/admin/src/pages/ContributionLinks.spec.js b/admin/src/pages/ContributionLinks.spec.js index 3d91fdbe9..0b79d8671 100644 --- a/admin/src/pages/ContributionLinks.spec.js +++ b/admin/src/pages/ContributionLinks.spec.js @@ -5,7 +5,7 @@ import { toastErrorSpy } from '../../test/testSetup' const localVue = global.localVue -const apolloQueryMock = jest.fn().mockResolvedValueOnce({ +const apolloQueryMock = jest.fn().mockResolvedValue({ data: { listContributionLinks: { links: [ @@ -47,6 +47,7 @@ describe('ContributionLinks', () => { beforeEach(() => { wrapper = Wrapper() }) + describe('apollo returns', () => { it('calls listContributionLinks', () => { expect(apolloQueryMock).toBeCalledWith( @@ -57,7 +58,7 @@ describe('ContributionLinks', () => { }) }) - describe.skip('query transaction with error', () => { + describe('query transaction with error', () => { beforeEach(() => { apolloQueryMock.mockRejectedValue({ message: 'OUCH!' }) wrapper = Wrapper() diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 9218dfe68..d76ffc612 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -71,305 +71,305 @@