From cbdb68f3856266e5a871083c971a790496c2d064 Mon Sep 17 00:00:00 2001 From: joseji Date: Mon, 17 Oct 2022 23:22:04 +0200 Subject: [PATCH] missed 1 decimal check on tests --- backend/src/graphql/resolver/ContributionResolver.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/ContributionResolver.test.ts b/backend/src/graphql/resolver/ContributionResolver.test.ts index 2a40f2100..323efe5d9 100644 --- a/backend/src/graphql/resolver/ContributionResolver.test.ts +++ b/backend/src/graphql/resolver/ContributionResolver.test.ts @@ -203,7 +203,7 @@ describe('ContributionResolver', () => { await expect(EventProtocol.find()).resolves.toContainEqual( expect.objectContaining({ type: EventProtocolType.CONTRIBUTION_CREATE, - // amount: '100', FAILS even though it is stored correctly in the database, event has 100 stored + amount: expect.decimalEqual(100), contributionId: contribution.data.createContribution.id, userId: bibi.data.login.id, }),