[next] Comment Reply Revisions (#2072)

* feat: added revision id support for replies

* feat: use createCommentReply
This commit is contained in:
Wyatt Johnson
2018-11-27 21:56:12 +00:00
committed by GitHub
parent 71ce74e1d1
commit a5c98cd587
14 changed files with 383 additions and 136 deletions
@@ -28,7 +28,7 @@ beforeEach(() => {
),
},
Mutation: {
createComment: createSinonStub(
createCommentReply: createSinonStub(
s => s.throws(),
s =>
s
@@ -36,6 +36,7 @@ beforeEach(() => {
input: {
storyID: storyWithDeepestReplies.id,
parentID: "comment-with-deepest-replies-5",
parentRevisionID: "revision-0",
body: "<strong>Hello world!</strong>",
clientMutationId: "0",
},
@@ -23,7 +23,7 @@ beforeEach(() => {
),
},
Mutation: {
createComment: createSinonStub(
createCommentReply: createSinonStub(
s => s.throws(),
s =>
s
@@ -31,6 +31,7 @@ beforeEach(() => {
input: {
storyID: stories[0].id,
parentID: stories[0].comments.edges[0].node.id,
parentRevisionID: stories[0].comments.edges[0].node.revision.id,
body: "<strong>Hello world!</strong>",
clientMutationId: "0",
},