Edit UI sends editComment mutation, handles errors

This commit is contained in:
Benjamin Goering
2017-05-02 22:07:23 -05:00
parent aa18a433f8
commit b9a3466e2e
10 changed files with 95 additions and 10 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ describe('graph.mutations.editComment', () => {
});
expect(response.errors).to.be.empty;
expect(response.data.editComment.errors).to.not.be.empty;
expect(response.data.editComment.errors[0].translation_key).to.equal('NOT_AUTHORIZED');
expect(response.data.editComment.errors[0].translation_key).to.equal('error.editWindowExpired');
const commentAfterEdit = await CommentsService.findById(comment.id);
// it *hasn't* changed from the original