aboutsummaryrefslogtreecommitdiffstats
path: root/mail-overview/test-mail-notify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mail-overview/test-mail-notify.sh')
-rwxr-xr-xmail-overview/test-mail-notify.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/mail-overview/test-mail-notify.sh b/mail-overview/test-mail-notify.sh
index d5db6c3..9fc21a9 100755
--- a/mail-overview/test-mail-notify.sh
+++ b/mail-overview/test-mail-notify.sh
@@ -87,24 +87,28 @@ rows_json='[
]'
check "a body lists author and subject per row" \
- "Alice Example — First subject
-Bob Example — Second subject
-Carol Example — Third subject" \
+ "• Alice Example — First subject
+
+• Bob Example — Second subject
+
+• Carol Example — Third subject" \
"$(build_body "$rows_json" 3)"
check "a batch bigger than the rows shown is elided" \
- "Alice Example — First subject
-Bob Example — Second subject
-Carol Example — Third subject
+ "• Alice Example — First subject
+
+• Bob Example — Second subject
+
+• Carol Example — Third subject
+7 more" \
"$(build_body "$rows_json" 10)"
check "markup characters are escaped, not rendered" \
- "A & B — <script>" \
+ "• A & B — <script>" \
"$(build_body '[{"authors":"A & B","subject":"<script>"}]' 1)"
check "a missing subject says so rather than printing nothing" \
- "Alice Example — (no subject)" \
+ "• Alice Example — (no subject)" \
"$(build_body '[{"authors":"Alice Example","subject":null}]' 1)"
check "malformed json yields an empty body rather than an error" \