This commit is contained in:
Matt Rider 2019-04-16 23:37:11 -03:00
parent dd9383ef40
commit c519bff743

View File

@ -30,7 +30,7 @@ describe('CreateComment', () => {
it('throws authorization error', async () => {
variables = {
id: 'c1',
content: "I'm not authorised to comment"
content: 'I\'m not authorised to comment'
}
client = new GraphQLClient(host)
await expect(client.request(mutation, variables)).rejects.toThrow('Not Authorised')
@ -47,12 +47,12 @@ describe('CreateComment', () => {
it('creates a post', async () => {
variables = {
id: 'c1',
content: "I'm authorised to comment"
content: 'I\'m authorised to comment'
}
const expected = {
CreateComment: {
id: 'c1',
content: "I'm authorised to comment"
content: 'I\'m authorised to comment'
}
}