summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/notification_test.go')
-rw-r--r--app/notification_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/notification_test.go b/app/notification_test.go
index 02b6e1db0..e0c1a54e6 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -399,6 +399,12 @@ func TestRemoveCodeFromMessage(t *testing.T) {
if actual := removeCodeFromMessage(input); actual != expected {
t.Fatalf("received incorrect output\n\nGot:\n%v\n\nExpected:\n%v\n", actual, expected)
}
+
+ input = "this is text with\n~~~\na code block\n~~~\nin it"
+ expected = "this is text with\n\nin it"
+ if actual := removeCodeFromMessage(input); actual != expected {
+ t.Fatalf("received incorrect output\n\nGot:\n%v\n\nExpected:\n%v\n", actual, expected)
+ }
}
func TestGetMentionKeywords(t *testing.T) {