mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix lint
This commit is contained in:
parent
dd9383ef40
commit
c519bff743
@ -30,7 +30,7 @@ describe('CreateComment', () => {
|
|||||||
it('throws authorization error', async () => {
|
it('throws authorization error', async () => {
|
||||||
variables = {
|
variables = {
|
||||||
id: 'c1',
|
id: 'c1',
|
||||||
content: "I'm not authorised to comment"
|
content: 'I\'m not authorised to comment'
|
||||||
}
|
}
|
||||||
client = new GraphQLClient(host)
|
client = new GraphQLClient(host)
|
||||||
await expect(client.request(mutation, variables)).rejects.toThrow('Not Authorised')
|
await expect(client.request(mutation, variables)).rejects.toThrow('Not Authorised')
|
||||||
@ -47,12 +47,12 @@ describe('CreateComment', () => {
|
|||||||
it('creates a post', async () => {
|
it('creates a post', async () => {
|
||||||
variables = {
|
variables = {
|
||||||
id: 'c1',
|
id: 'c1',
|
||||||
content: "I'm authorised to comment"
|
content: 'I\'m authorised to comment'
|
||||||
}
|
}
|
||||||
const expected = {
|
const expected = {
|
||||||
CreateComment: {
|
CreateComment: {
|
||||||
id: 'c1',
|
id: 'c1',
|
||||||
content: "I'm authorised to comment"
|
content: 'I\'m authorised to comment'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user