From d3c86f867d29b79eec1d280389975c920a7ec196 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Wed, 8 Apr 2015 21:39:22 -0300 Subject: Prepend mail quoting with the sender information #66 --- web-ui/test/spec/helpers/view_helper.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web-ui/test') 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), wrote'); + }); }); describe('getFormmattedDate', function() { -- cgit v1.2.3