mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed tests
This commit is contained in:
parent
3979e84a8c
commit
dac2cf7bba
@ -560,7 +560,7 @@ describe('Contribution Links', () => {
|
||||
).resolves.toEqual(
|
||||
expect.objectContaining({
|
||||
data: {
|
||||
deleteContributionLink: expect.any(String),
|
||||
deleteContributionLink: true,
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user