Skip to content

Commit

Permalink
📦️ build
Browse files Browse the repository at this point in the history
  • Loading branch information
marocchino committed Aug 16, 2023
1 parent db8c408 commit efaaab3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 11 deletions.
27 changes: 21 additions & 6 deletions __tests__/comment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,27 @@ describe("getBodyOf", () => {

describe("commentsEqual", () => {
test.each([
{ body: "body", previous: "body\n<!-- Sticky Pull Request Commentheader -->", header: "header", expected: true },
{ body: "body", previous: "body\n<!-- Sticky Pull Request Comment -->", header: "", expected: true },
{ body: "body", previous: "body\n<!-- Sticky Pull Request Commenta different header -->", header: "header", expected: false },
{ body: "body", previous: "body", header: "header", expected: false },
{ body: "body", previous: "", header: "header", expected: false },
{ body: "", previous: "body", header: "header", expected: false },
{
body: "body",
previous: "body\n<!-- Sticky Pull Request Commentheader -->",
header: "header",
expected: true
},
{
body: "body",
previous: "body\n<!-- Sticky Pull Request Comment -->",
header: "",
expected: true
},
{
body: "body",
previous: "body\n<!-- Sticky Pull Request Commenta different header -->",
header: "header",
expected: false
},
{body: "body", previous: "body", header: "header", expected: false},
{body: "body", previous: "", header: "header", expected: false},
{body: "", previous: "body", header: "header", expected: false}
])("commentsEqual(%s, %s, %s)", ({body, previous, header, expected}) => {
expect(commentsEqual(body, previous, header)).toEqual(expected)
})
Expand Down
23 changes: 19 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit efaaab3

Please sign in to comment.