mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix test - describes cant be asnyc
This commit is contained in:
parent
5be2fe28b0
commit
fa19e89174
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user