mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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
|
authenticatedUser = null
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('unauthenticated', async () => {
|
describe('unauthenticated', () => {
|
||||||
it('throws authorization error', async () => {
|
it('throws authorization error', async () => {
|
||||||
authenticatedUser = null
|
authenticatedUser = null
|
||||||
await expect(query({ query: reportsQuery })).resolves.toMatchObject({
|
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 () => {
|
it('role "user" gets no reports', async () => {
|
||||||
authenticatedUser = await currentUser.toJson()
|
authenticatedUser = await currentUser.toJson()
|
||||||
await expect(query({ query: reportsQuery })).resolves.toMatchObject({
|
await expect(query({ query: reportsQuery })).resolves.toMatchObject({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user