Commit 1cc1ed1fba
Unsigned
Layout: unified · split
HutchTests/InboxViewModelTests.swift +2 −2
| @@ -272,7 +272,7 @@ struct InboxViewModelTests { | ||
| 272 | 272 | @Test |
| 273 | 273 | func segmentsPatchBodyAndTreatsSignatureAsPlainText() { |
| 274 | 274 | let body = """ |
| 275 | From: Christian Cleberg <hello@cleberg.net> | |
| 275 | From: Christian Cleberg <root@krz.sh> | |
| 276 | 276 | |
| 277 | 277 | --- |
| 278 | 278 | test-patch.txt | 1 + |
| @@ -298,7 +298,7 @@ struct InboxViewModelTests { | ||
| 298 | 298 | Issue.record("Expected first segment to be plain text") |
| 299 | 299 | return |
| 300 | 300 | } |
| 301 | #expect(leadingPlainText.contains("From: Christian Cleberg <hello@cleberg.net>")) | |
| 301 | #expect(leadingPlainText.contains("From: Christian Cleberg <root@krz.sh>")) | |
| 302 | 302 | #expect(leadingPlainText.contains("---")) |
| 303 | 303 | #expect(leadingPlainText.contains(" test-patch.txt | 1 +")) |
| 304 | 304 | #expect(leadingPlainText.contains(" 1 file changed, 1 insertion(+)")) |
HutchTests/ReadmeViewTests.swift +3 −3
| @@ -169,10 +169,10 @@ struct MarkdownRenderingTests { | ||
| 169 | 169 | |
| 170 | 170 | @Test |
| 171 | 171 | func markdownPlainEmailAutolinks() { |
| 172 | let html = processInline("Contact hello@cleberg.net") | |
| 172 | let html = processInline("Contact root@krz.sh") | |
| 173 | 173 | |
| 174 | #expect(html.contains(#"href="mailto:hello@cleberg.net""#)) | |
| 175 | #expect(html.contains(">hello@cleberg.net</a>")) | |
| 174 | #expect(html.contains(#"href="mailto:root@krz.sh""#)) | |
| 175 | #expect(html.contains(">root@krz.sh</a>")) | |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | @Test |