even tho skipped have the correct error message in test

This commit is contained in:
Ulf Gebhardt 2023-01-31 22:13:13 +01:00
parent d0d45aaf6a
commit 6e663f6093
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -761,16 +761,14 @@ describe('UserResolver', () => {
it('returns an error', () => {
expect(result).toEqual(
expect.objectContaining({
errors: [
new GraphQLError('This user was permanently deleted. Contact support for questions'),
],
errors: [new GraphQLError('The User has not set a password yet')],
}),
)
})
it('logs the error thrown', () => {
expect(logger.error).toBeCalledWith(
'This user was permanently deleted. Contact support for questions',
'The User has not set a password yet',
expect.objectContaining({
firstName: bibiBloxberg.firstName,
lastName: bibiBloxberg.lastName,