tui/email_view_test.go 🔗
@@ -137,4 +137,4 @@ func TestEmailViewUpdate(t *testing.T) {
t.Errorf("Expected reply to have subject '%s', but got '%s'", emailWithAttachments.Subject, replyMsg.Email.Subject)
}
})
-}
+}
drew created
tui/email_view_test.go | 2 +-
view/html.go | 2 +-
view/html_test.go | 10 +++++-----
3 files changed, 7 insertions(+), 7 deletions(-)
@@ -137,4 +137,4 @@ func TestEmailViewUpdate(t *testing.T) {
t.Errorf("Expected reply to have subject '%s', but got '%s'", emailWithAttachments.Subject, replyMsg.Email.Subject)
}
})
-}
+}
@@ -112,4 +112,4 @@ func ProcessBody(rawBody string, h1Style, h2Style, bodyStyle lipgloss.Style) (st
text = strings.TrimSpace(text)
return bodyStyle.Render(text), nil
-}
+}
@@ -98,8 +98,8 @@ func TestProcessBody(t *testing.T) {
expected: "Click here",
},
{
- name: "With image HTML",
- input: `<img src="http://example.com/img.png" alt="alt text">`,
+ name: "With image HTML",
+ input: `<img src="http://example.com/img.png" alt="alt text">`,
expected: "[Click here to view image: alt text]",
},
{
@@ -113,8 +113,8 @@ func TestProcessBody(t *testing.T) {
expected: "Click here",
},
{
- name: "With image Markdown",
- input: `>`,
+ name: "With image Markdown",
+ input: `>`,
expected: "[Click here to view image: alt text]",
},
{
@@ -136,4 +136,4 @@ func TestProcessBody(t *testing.T) {
}
})
}
-}
+}