feat: append to previous comment message

This commit is contained in:
Simon Stender Boisen 2020-03-26 14:30:28 +01:00
parent dd253e3148
commit 168a45153d
4 changed files with 19 additions and 3 deletions

View file

@ -67,6 +67,14 @@ it("updateComment", async () => {
comment_id: 456,
body: "<!-- Sticky Pull Request CommentTypeA -->\nhello there"
});
expect(
await updateComment(octokit, repo, 456, "hello there", "TypeA", "<!-- Sticky Pull Request CommentTypeA -->\nhello there")
).toBeUndefined();
expect(octokit.issues.updateComment).toBeCalledWith({
comment_id: 456,
body: "<!-- Sticky Pull Request CommentTypeA -->\nhello there\nhello there"
});
});
it("createComment", async () => {
const octokit = {