summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/helpers
diff options
context:
space:
mode:
authorPatrick Maia <patrickjourdanmaia@gmail.com>2014-08-07 14:37:03 -0300
committerPatrick Maia <patrickjourdanmaia@gmail.com>2014-08-07 14:37:03 -0300
commit44fe6003ffdf6ab50feca5dd755d10e17b12846d (patch)
treecf4e8a8e67512dc7af1880db4c577426ead4d9a9 /web-ui/test/spec/helpers
parent118e0428b906ed02f0189ffb23d7b67d1d8c4a1d (diff)
fixes bug in which plain text emails were not being properly formatted
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);