mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge branch '1707-refactor-db-reporting-with-specific-information' of github.com:Human-Connection/Human-Connection into 1707-refactor-db-reporting-with-specific-information
This commit is contained in:
commit
19facb22a9
@ -448,7 +448,7 @@ describe('reports query', () => {
|
|||||||
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('roll "user" gets no reports', async () => {
|
it('role "user" gets no reports', async () => {
|
||||||
authenticatedUser = await user.toJson()
|
authenticatedUser = await user.toJson()
|
||||||
const { data, errors } = await query({ query: reportsQuery })
|
const { data, errors } = await query({ query: reportsQuery })
|
||||||
expect(data).toEqual({
|
expect(data).toEqual({
|
||||||
@ -457,7 +457,7 @@ describe('reports query', () => {
|
|||||||
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('roll "moderator" gets reports', async () => {
|
it('role "moderator" gets reports', async () => {
|
||||||
const expected = {
|
const expected = {
|
||||||
// to check 'orderBy: createdAt_desc' is not possible here, because 'createdAt' does not differ
|
// to check 'orderBy: createdAt_desc' is not possible here, because 'createdAt' does not differ
|
||||||
reports: expect.arrayContaining([
|
reports: expect.arrayContaining([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user