fixed tests

This commit is contained in:
Ulf Gebhardt 2023-03-07 11:27:47 +01:00
parent 3979e84a8c
commit dac2cf7bba
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 4 additions and 4 deletions

View File

@ -560,7 +560,7 @@ describe('Contribution Links', () => {
).resolves.toEqual(
expect.objectContaining({
data: {
deleteContributionLink: expect.any(String),
deleteContributionLink: true,
},
}),
)

View File

@ -99,7 +99,7 @@ export class ContributionLinkResolver {
}
@Authorized([RIGHTS.ADMIN_DELETE_CONTRIBUTION_LINK])
@Mutation(() => Date, { nullable: true })
@Mutation(() => Boolean, { nullable: true })
async deleteContributionLink(
@Arg('id', () => Int) id: number,
@Ctx() context: Context,

View File

@ -374,7 +374,7 @@ describe('UserResolver', () => {
type: EventType.REDEEM_REGISTER,
affectedUserId: result.data.createUser.id,
actingUserId: result.data.createUser.id,
involvedContributionId: link.id,
involvedContributionLinkId: link.id,
}),
)
})
@ -459,7 +459,7 @@ describe('UserResolver', () => {
type: EventType.REDEEM_REGISTER,
affectedUserId: newUser.data.createUser.id,
actingUserId: newUser.data.createUser.id,
involvedTransactionId: transactionLink.id,
involvedTransactionLinkId: transactionLink.id,
}),
)
})