mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix tests
This commit is contained in:
parent
5f43a51c6a
commit
aa09ac29dc
@ -89,7 +89,7 @@ describe('Group', () => {
|
|||||||
describe('unauthenticated', () => {
|
describe('unauthenticated', () => {
|
||||||
it('throws authorization error', async () => {
|
it('throws authorization error', async () => {
|
||||||
const { errors } = await query({ query: groupQuery, variables: {} })
|
const { errors } = await query({ query: groupQuery, variables: {} })
|
||||||
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
expect(errors[0]).toHaveProperty('message', 'Not Authorized!')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ describe('CreateGroup', () => {
|
|||||||
describe('unauthenticated', () => {
|
describe('unauthenticated', () => {
|
||||||
it('throws authorization error', async () => {
|
it('throws authorization error', async () => {
|
||||||
const { errors } = await mutate({ mutation: createGroupMutation, variables })
|
const { errors } = await mutate({ mutation: createGroupMutation, variables })
|
||||||
expect(errors[0]).toHaveProperty('message', 'Not Authorised!')
|
expect(errors[0]).toHaveProperty('message', 'Not Authorized!')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user