Delete datas after all listContributions and updateContribution Tests.

This commit is contained in:
elweyn 2022-07-12 10:11:28 +02:00
parent 46206c4752
commit b991bb0467

View File

@ -169,6 +169,11 @@ describe('ContributionResolver', () => {
})
})
afterAll(async () => {
await cleanDB()
resetToken()
})
describe('filter confirmed is false', () => {
it('returns creations', async () => {
await expect(
@ -276,6 +281,11 @@ describe('ContributionResolver', () => {
})
})
afterAll(async () => {
await cleanDB()
resetToken()
})
describe('wrong contribution id', () => {
it('throws an error', async () => {
await expect(