aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_msg_builder.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_msg_builder.rs b/tests/test_msg_builder.rs
index c291bf5..eca8aef 100644
--- a/tests/test_msg_builder.rs
+++ b/tests/test_msg_builder.rs
@@ -16,6 +16,14 @@ fn code_blocks() {
}
#[test]
+fn safe_code_blocks() {
+ let content = MessageBuilder::new()
+ .push_codeblock_safe("test", Some("rb"))
+ .build();
+ assert_eq!(content, "```rb\ntest\n```");
+}
+
+#[test]
fn safe_content() {
let content = MessageBuilder::new()
.push_safe("@everyone discord.gg/discord-api")