Update backend/src/graphql/resolver/UserResolver.test.ts

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
jjimenezgarcia 2022-09-19 15:40:59 +02:00 committed by GitHub
parent cfdec3d122
commit 5f94cfca88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ describe('UserResolver', () => {
expect(EventProtocol.find()).resolves.toContainEqual(
expect.objectContaining({
type: EventProtocolType.SEND_CONFIRMATION_EMAIL,
userId: expect.any(Number), // as it is randomly generated
userId: user.id,
}),
)
})