mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
[next] Comment Reply Revisions (#2072)
* feat: added revision id support for replies * feat: use createCommentReply
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user