mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 19:26:31 +08:00
Edit UI sends editComment mutation, handles errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user