Skip to content

Commit c39b14d

Browse files
committed
tests: promote with simple char escape check
1 parent 2b0dfca commit c39b14d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mock_payloads/pull_request_review_comment.created.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"type": "User",
3232
"site_admin": false
3333
},
34-
"body": "PR review comment example",
34+
"body": "PR review comment example with <escaped & characters>",
3535
"created_at": "2020-05-25T07:37:52Z",
3636
"updated_at": "2020-05-25T07:38:26Z",
3737
"html_url": "https://github.com/xinyuluo/pr_test/pull/4#discussion_r429778584",

test/slack_payloads.expected

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ will notify #aa-git
403403
"color": "#ccc",
404404
"pretext":
405405
"<https://github.com/xinyuluo/pr_test|[xinyuluo/pr_test]> *xinyuluo* commented on #4 <https://github.com/xinyuluo/pr_test/pull/4|README update>",
406-
"text": "PR review comment example",
406+
"text":
407+
"PR review comment example with &lt;escaped &amp; characters&gt;",
407408
"footer":
408409
"New comment by xinyuluo in <https://github.com/xinyuluo/pr_test/pull/4#discussion_r429778584|README.md>"
409410
}
@@ -419,7 +420,8 @@ will notify #backend
419420
"color": "#ccc",
420421
"pretext":
421422
"<https://github.com/xinyuluo/pr_test|[xinyuluo/pr_test]> *xinyuluo* commented on #4 <https://github.com/xinyuluo/pr_test/pull/4|README update>",
422-
"text": "PR review comment example",
423+
"text":
424+
"PR review comment example with &lt;escaped &amp; characters&gt;",
423425
"footer":
424426
"New comment by xinyuluo in <https://github.com/xinyuluo/pr_test/pull/4#discussion_r429778584|README.md>"
425427
}

0 commit comments

Comments
 (0)