summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-04-09 12:50:17 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-04-09 12:50:17 -0300
commit1e66153834b8d172195af80866694a84cc03aeea (patch)
treec26d54f5ebe05c2f267c801c4645ae53f8412ed2 /web-ui/test
parentbd78f1ff44061b17b80fef270c814a6e353179ad (diff)
parentd3c86f867d29b79eec1d280389975c920a7ec196 (diff)
Merge pull request #370 from bltavares/preprend-messages-with-response-information
Prepend mail quoting with the sender information #66 Removes argument fixing of the i18n library #66
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/helpers/view_helper.spec.js8
1 files changed, 8 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 7b5b960b..888c6cda 100644
--- a/web-ui/test/spec/helpers/view_helper.spec.js
+++ b/web-ui/test/spec/helpers/view_helper.spec.js
@@ -15,6 +15,14 @@ define(['helpers/view_helper'], function (viewHelper) {
expect(quotedMail).toContain('> First Line\n> Second Line');
});
+
+ it('should add the mail sender information', function() {
+ testData.rawMail.mail.textPlainBody = 'First Line\nSecond Line';
+
+ var quotedMail = viewHelper.quoteMail(testData.rawMail.mail);
+
+ expect(quotedMail).toContain('On Wed Jun 04 2014 17:41:13 GMT+0000 (UTC), <laurel@hamill.info> wrote');
+ });
});
describe('getFormmattedDate', function() {