From 8788ba38699435b0860f151e1c750cd736882d49 Mon Sep 17 00:00:00 2001 From: rafael lisboa Date: Thu, 9 Apr 2015 15:46:36 -0300 Subject: modify quoted mail test that was breaking due to different timezones --- web-ui/test/spec/helpers/view_helper.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'web-ui/test/spec/helpers') diff --git a/web-ui/test/spec/helpers/view_helper.spec.js b/web-ui/test/spec/helpers/view_helper.spec.js index 888c6cda..920709b2 100644 --- a/web-ui/test/spec/helpers/view_helper.spec.js +++ b/web-ui/test/spec/helpers/view_helper.spec.js @@ -9,19 +9,19 @@ define(['helpers/view_helper'], function (viewHelper) { describe('quote email', function() { it('should add > to body text', function() { - testData.rawMail.mail.textPlainBody = 'First Line\nSecond Line'; + testData.parsedMail.simpleTextPlain.textPlainBody = 'First Line\nSecond Line'; - var quotedMail = viewHelper.quoteMail(testData.rawMail.mail); + var quotedMail = viewHelper.quoteMail(testData.parsedMail.simpleTextPlain); expect(quotedMail).toContain('> First Line\n> Second Line'); }); it('should add the mail sender information', function() { - testData.rawMail.mail.textPlainBody = 'First Line\nSecond Line'; + testData.parsedMail.simpleTextPlain.textPlainBody = 'First Line\nSecond Line'; - var quotedMail = viewHelper.quoteMail(testData.rawMail.mail); + var quotedMail = viewHelper.quoteMail(testData.parsedMail.simpleTextPlain); - expect(quotedMail).toContain('On Wed Jun 04 2014 17:41:13 GMT+0000 (UTC), wrote'); + expect(quotedMail).toContain(''); }); }); -- cgit v1.2.3