diff options
Diffstat (limited to 'mail-overview/test-mail-notify.sh')
| -rwxr-xr-x | mail-overview/test-mail-notify.sh | 20 |
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" \ |
