rename test, remove duplicate tests

This commit is contained in:
Jake Hiller 2020-06-23 11:49:06 -04:00
parent 2f6d0e21be
commit 0ce3e0c6ca

View file

@ -99,7 +99,7 @@ it("createComment", async () => {
});
});
it("removeComment", async () => {
it("deleteComment", async () => {
const octokit = {
issues: {
deleteComment: jest.fn(() => Promise.resolve())
@ -111,17 +111,4 @@ it("removeComment", async () => {
expect(octokit.issues.deleteComment).toBeCalledWith({
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
});
});