Skip to content

Commit 869bc04

Browse files
authored
Test Slack messages starting with links
1 parent 02e68a3 commit 869bc04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/backend_tests/slack_tests.py

+4
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ def test_slack_markdown_link_preprocessor(self):
247247
"This is <http://example.com/|a link> and a manual URL: https://example.com/.",
248248
convert("This is [a link](http://example.com/) and a manual URL: https://example.com/.")
249249
)
250+
self.assertEqual(
251+
"<http://example.com/|This is a link>",
252+
convert("[This is a link](http://example.com/)")
253+
)
250254
self.assertEqual(
251255
"This is http://example.com/image.png.",
252256
convert("This is ![an image](http://example.com/image.png).")

0 commit comments

Comments
 (0)