summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/helpers')
-rw-r--r--web-ui/test/spec/helpers/view_helper.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web-ui/test/spec/helpers/view_helper.spec.js b/web-ui/test/spec/helpers/view_helper.spec.js
index 7fa10e56..1bcf68dd 100644
--- a/web-ui/test/spec/helpers/view_helper.spec.js
+++ b/web-ui/test/spec/helpers/view_helper.spec.js
@@ -59,6 +59,12 @@ define(['helpers/view_helper'], function (viewHelper) {
expect(viewHelper.formatMailBody(testData.parsedMail.html)).toContainHtml('<p>Hello everyone!</p>');
});
+ it('formats the body of a plain text email', function () {
+ var formatedMail = $('<div></div>');
+ formatedMail.html(viewHelper.formatMailBody(testData.parsedMail.simpleTextPlain));
+ expect(formatedMail).toContainHtml('<p>Hello Everyone</p>');
+ });
+
it('decodes a quoted-printable email body', function () {
var result = viewHelper.formatMailBody(testData.parsedMail.htmlQuotedPrintable);