From f492e24cf49ddcd9e9f147092fcc3ca8a3c8d7ee Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Sat, 12 Aug 2023 13:08:44 +0200 Subject: [PATCH] fix lint and tests --- admin/src/pages/CreationConfirm.spec.js | 9 +++++++++ backend/src/graphql/resolver/ContributionResolver.ts | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/src/pages/CreationConfirm.spec.js b/admin/src/pages/CreationConfirm.spec.js index 44ba4a1c4..36e2479aa 100644 --- a/admin/src/pages/CreationConfirm.spec.js +++ b/admin/src/pages/CreationConfirm.spec.js @@ -339,6 +339,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -355,6 +356,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -372,6 +374,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -389,6 +392,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -406,6 +410,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -427,6 +432,7 @@ describe('CreationConfirm', () => { it('calls the API again', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 2, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -443,6 +449,7 @@ describe('CreationConfirm', () => { it('refetches contributions with proper filter and current page = 1', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', @@ -465,6 +472,7 @@ describe('CreationConfirm', () => { it('calls the API with query', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: 'query', @@ -480,6 +488,7 @@ describe('CreationConfirm', () => { it('calls the API with empty query', () => { expect(adminListContributionsMock).toBeCalledWith({ currentPage: 1, + noHashtag: null, order: 'DESC', pageSize: 25, query: '', diff --git a/backend/src/graphql/resolver/ContributionResolver.ts b/backend/src/graphql/resolver/ContributionResolver.ts index 1d94b2ee7..adf0f03e9 100644 --- a/backend/src/graphql/resolver/ContributionResolver.ts +++ b/backend/src/graphql/resolver/ContributionResolver.ts @@ -56,7 +56,6 @@ import { import { findContributions } from './util/findContributions' import { getLastTransaction } from './util/getLastTransaction' - @Resolver() export class ContributionResolver { @Authorized([RIGHTS.CREATE_CONTRIBUTION])