From c39b14d92027232f8b87c7eddd26c425d36392ed Mon Sep 17 00:00:00 2001 From: Yasunari Watanabe Date: Tue, 5 Jan 2021 17:25:19 +0800 Subject: [PATCH] tests: promote with simple char escape check --- mock_payloads/pull_request_review_comment.created.json | 2 +- test/slack_payloads.expected | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mock_payloads/pull_request_review_comment.created.json b/mock_payloads/pull_request_review_comment.created.json index e362e33b..035e74d9 100644 --- a/mock_payloads/pull_request_review_comment.created.json +++ b/mock_payloads/pull_request_review_comment.created.json @@ -31,7 +31,7 @@ "type": "User", "site_admin": false }, - "body": "PR review comment example", + "body": "PR review comment example with ", "created_at": "2020-05-25T07:37:52Z", "updated_at": "2020-05-25T07:38:26Z", "html_url": "https://github.com/xinyuluo/pr_test/pull/4#discussion_r429778584", diff --git a/test/slack_payloads.expected b/test/slack_payloads.expected index 24abc4f3..45f10695 100644 --- a/test/slack_payloads.expected +++ b/test/slack_payloads.expected @@ -403,7 +403,8 @@ will notify #aa-git "color": "#ccc", "pretext": " *xinyuluo* commented on #4 ", - "text": "PR review comment example", + "text": + "PR review comment example with <escaped & characters>", "footer": "New comment by xinyuluo in " } @@ -419,7 +420,8 @@ will notify #backend "color": "#ccc", "pretext": " *xinyuluo* commented on #4 ", - "text": "PR review comment example", + "text": + "PR review comment example with <escaped & characters>", "footer": "New comment by xinyuluo in " }