From 64a7f4aa6ff9f20b6559c1f5104630caf5ce1956 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 15 Jun 2022 16:04:14 +0200 Subject: [PATCH] remove CL-prefix for contribution links in tests --- backend/src/graphql/resolver/AdminResolver.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/graphql/resolver/AdminResolver.test.ts b/backend/src/graphql/resolver/AdminResolver.test.ts index 06a11d8c2..d55795f6e 100644 --- a/backend/src/graphql/resolver/AdminResolver.test.ts +++ b/backend/src/graphql/resolver/AdminResolver.test.ts @@ -1757,7 +1757,7 @@ describe('AdminResolver', () => { createContributionLink: expect.objectContaining({ id: expect.any(Number), amount: '200', - code: expect.stringMatching(/^CL-[0-9a-f]{24,24}$/), + code: expect.stringMatching(/^[0-9a-f]{24,24}$/), link: expect.any(String), createdAt: expect.any(String), name: 'Dokumenta 2022', @@ -1809,7 +1809,7 @@ describe('AdminResolver', () => { links: expect.arrayContaining([ expect.objectContaining({ amount: '200', - code: expect.stringMatching(/^CL-[0-9a-f]{24,24}$/), + code: expect.stringMatching(/^[0-9a-f]{24,24}$/), link: expect.any(String), createdAt: expect.any(String), name: 'Dokumenta 2022', @@ -1877,7 +1877,7 @@ describe('AdminResolver', () => { updateContributionLink: { id: linkId, amount: '400', - code: expect.stringMatching(/^CL-[0-9a-f]{24,24}$/), + code: expect.stringMatching(/^[0-9a-f]{24,24}$/), link: expect.any(String), createdAt: expect.any(String), name: 'Dokumenta 2023',