aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_render_blocks.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-12-21 23:42:36 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitc05d66e21a6e946b3fa0b1a48835860d1bb511a1 (patch)
tree605901140656447fe80a36c2982227e432e1df8f /tests/test_render_blocks.py
parentaafcb6472607dfae714a025435e1f8081ac8299d (diff)
downloadwee-slack-c05d66e21a6e946b3fa0b1a48835860d1bb511a1.tar.gz
Support color rich text elements
Diffstat (limited to 'tests/test_render_blocks.py')
-rw-r--r--tests/test_render_blocks.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_render_blocks.py b/tests/test_render_blocks.py
index cd5442e..6b1fc0f 100644
--- a/tests/test_render_blocks.py
+++ b/tests/test_render_blocks.py
@@ -428,6 +428,21 @@ cases: List[Case] = [
"<[color:bold]><[color:italic]>`*_~all styles~_*`<[color:-italic]><[color:-bold]>"
],
},
+ {
+ "blocks": [
+ {
+ "type": "rich_text",
+ "block_id": "M23r4",
+ "elements": [
+ {
+ "type": "rich_text_section",
+ "elements": [{"type": "color", "value": "#FFAA00"}],
+ }
+ ],
+ }
+ ],
+ "rendered": ["#FFAA00 <[color:16755200]>■<[color:reset]>"],
+ },
]