mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-18 05:58:27 +00:00
Revert changes to spec file
This commit is contained in:
parent
f6651c5728
commit
b27d1a1315
1 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ describe("updateComment", () => {
|
||||||
|
|
||||||
it("without comment body and previousbody", async() => {
|
it("without comment body and previousbody", async() => {
|
||||||
expect(
|
expect(
|
||||||
await updateComment(octokit, repo, 456, "", null)
|
await updateComment(octokit, repo, 456, "", "")
|
||||||
).toBeUndefined();
|
).toBeUndefined();
|
||||||
expect(octokit.issues.updateComment).not.toBeCalled();
|
expect(octokit.issues.updateComment).not.toBeCalled();
|
||||||
expect(core.warning).toBeCalledWith('Comment body cannot be blank');
|
expect(core.warning).toBeCalledWith('Comment body cannot be blank');
|
||||||
|
|
@ -136,7 +136,7 @@ describe("createComment", () => {
|
||||||
})
|
})
|
||||||
it("without comment body and previousBody", async () => {
|
it("without comment body and previousBody", async () => {
|
||||||
expect(
|
expect(
|
||||||
await createComment(octokit, repo, 456, "", null)
|
await createComment(octokit, repo, 456, "", "")
|
||||||
).toBeUndefined();
|
).toBeUndefined();
|
||||||
expect(octokit.issues.createComment).not.toBeCalled();
|
expect(octokit.issues.createComment).not.toBeCalled();
|
||||||
expect(core.warning).toBeCalledWith('Comment body cannot be blank');
|
expect(core.warning).toBeCalledWith('Comment body cannot be blank');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue