From ee52fb2df818b3b46d81a3f5fa5de2c926987462 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 acb36d36..c8d6e3ec 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/monorepo/pull/4#discussion_r0", diff --git a/test/slack_payloads.expected b/test/slack_payloads.expected index 4dfc36f3..3fc0574e 100644 --- a/test/slack_payloads.expected +++ b/test/slack_payloads.expected @@ -403,7 +403,8 @@ will notify #a1-bot "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 " }