From 316d491c266354f339848cf9fa8770abc2fcb8ad Mon Sep 17 00:00:00 2001 From: Alex Burgel Date: Thu, 4 May 2023 22:54:38 -0400 Subject: [PATCH] Update tests --- __tests__/comment.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/comment.test.ts b/__tests__/comment.test.ts index 8149e8f..8c140dd 100644 --- a/__tests__/comment.test.ts +++ b/__tests__/comment.test.ts @@ -159,13 +159,13 @@ describe("createComment", () => { beforeEach(() => { jest .spyOn(octokit.rest.issues, "createComment") - .mockResolvedValue("") + .mockResolvedValue("") }) it("with comment body or previousBody", async () => { - expect( - await createComment(octokit, repo, 456, "hello there", "") - ).toBeUndefined() + expect(await createComment(octokit, repo, 456, "hello there", "")).toEqual( + "" + ) expect(octokit.rest.issues.createComment).toBeCalledWith({ issue_number: 456, owner: "marocchino", @@ -174,7 +174,7 @@ describe("createComment", () => { }) expect( await createComment(octokit, repo, 456, "hello there", "TypeA") - ).toBeUndefined() + ).toEqual("") expect(octokit.rest.issues.createComment).toBeCalledWith({ issue_number: 456, owner: "marocchino",