mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
further solved tests
This commit is contained in:
parent
faf86f95b9
commit
4ccf687a63
@ -1687,13 +1687,16 @@ describe('UserResolver', () => {
|
||||
}),
|
||||
).resolves.toEqual(
|
||||
expect.objectContaining({
|
||||
errors: [new GraphQLError('User is already admin')],
|
||||
errors: [new GraphQLError('User already has role=')],
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
it('logs the error thrown', () => {
|
||||
expect(logger.error).toBeCalledWith('User is already admin')
|
||||
expect(logger.error).toBeCalledWith(
|
||||
'User already has role=',
|
||||
ROLE_NAMES.ROLE_NAME_ADMIN,
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user