mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Deconstruct not authenticated.
This commit is contained in:
parent
96feb30476
commit
e5025a906c
@ -938,21 +938,16 @@ describe('ContributionResolver', () => {
|
|||||||
describe('listContributions', () => {
|
describe('listContributions', () => {
|
||||||
describe('unauthenticated', () => {
|
describe('unauthenticated', () => {
|
||||||
it('returns an error', async () => {
|
it('returns an error', async () => {
|
||||||
await expect(
|
const { errors: errorObjects }: { errors: [GraphQLError] } = await query({
|
||||||
query({
|
query: listContributions,
|
||||||
query: listContributions,
|
variables: {
|
||||||
variables: {
|
currentPage: 1,
|
||||||
currentPage: 1,
|
pageSize: 25,
|
||||||
pageSize: 25,
|
order: 'DESC',
|
||||||
order: 'DESC',
|
filterConfirmed: false,
|
||||||
filterConfirmed: false,
|
},
|
||||||
},
|
})
|
||||||
}),
|
expect(errorObjects).toMatchObject([new GraphQLError('401 Unauthorized')])
|
||||||
).resolves.toEqual(
|
|
||||||
expect.objectContaining({
|
|
||||||
errors: [new GraphQLError('401 Unauthorized')],
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user