Revert changes to spec file

This commit is contained in:
Sebass van Boxel 2020-11-06 09:40:11 +01:00
parent f6651c5728
commit b27d1a1315
No known key found for this signature in database
GPG key ID: A1E93D1FBDF515B7

View file

@ -100,7 +100,7 @@ describe("updateComment", () => {
it("without comment body and previousbody", async() => {
expect(
await updateComment(octokit, repo, 456, "", null)
await updateComment(octokit, repo, 456, "", "")
).toBeUndefined();
expect(octokit.issues.updateComment).not.toBeCalled();
expect(core.warning).toBeCalledWith('Comment body cannot be blank');
@ -136,7 +136,7 @@ describe("createComment", () => {
})
it("without comment body and previousBody", async () => {
expect(
await createComment(octokit, repo, 456, "", null)
await createComment(octokit, repo, 456, "", "")
).toBeUndefined();
expect(octokit.issues.createComment).not.toBeCalled();
expect(core.warning).toBeCalledWith('Comment body cannot be blank');