fix test - describes cant be asnyc

This commit is contained in:
Ulf Gebhardt 2023-06-22 15:13:48 +02:00
parent 5be2fe28b0
commit fa19e89174
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -725,7 +725,7 @@ describe('file a report on a resource', () => {
authenticatedUser = null
})
describe('unauthenticated', async () => {
describe('unauthenticated', () => {
it('throws authorization error', async () => {
authenticatedUser = null
await expect(query({ query: reportsQuery })).resolves.toMatchObject({
@ -735,7 +735,7 @@ describe('file a report on a resource', () => {
})
})
describe('authenticated', async () => {
describe('authenticated', () => {
it('role "user" gets no reports', async () => {
authenticatedUser = await currentUser.toJson()
await expect(query({ query: reportsQuery })).resolves.toMatchObject({