mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-16 13:08:28 +00:00
rename test, remove duplicate tests
This commit is contained in:
parent
2f6d0e21be
commit
0ce3e0c6ca
1 changed files with 1 additions and 14 deletions
|
|
@ -99,7 +99,7 @@ it("createComment", async () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("removeComment", async () => {
|
it("deleteComment", async () => {
|
||||||
const octokit = {
|
const octokit = {
|
||||||
issues: {
|
issues: {
|
||||||
deleteComment: jest.fn(() => Promise.resolve())
|
deleteComment: jest.fn(() => Promise.resolve())
|
||||||
|
|
@ -111,17 +111,4 @@ it("removeComment", async () => {
|
||||||
expect(octokit.issues.deleteComment).toBeCalledWith({
|
expect(octokit.issues.deleteComment).toBeCalledWith({
|
||||||
comment_id: 456
|
comment_id: 456
|
||||||
});
|
});
|
||||||
expect(
|
|
||||||
await deleteComment(octokit, repo, 456)
|
|
||||||
).toBeUndefined();
|
|
||||||
expect(octokit.issues.deleteComment).toBeCalledWith({
|
|
||||||
comment_id: 456
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(
|
|
||||||
await deleteComment(octokit, repo, 456)
|
|
||||||
).toBeUndefined();
|
|
||||||
expect(octokit.issues.deleteComment).toBeCalledWith({
|
|
||||||
comment_id: 456
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue