summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r--web-ui/test/spec/helpers/view_helper.spec.js10
1 files changed, 5 insertions, 5 deletions
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), <laurel@hamill.info> wrote');
+ expect(quotedMail).toContain('<laurel@hamill.info>');
});
});