From fd82d5ff787bfadc70a40343cd895c09bd8b67b3 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Mon, 6 Jun 2016 19:54:44 +0200 Subject: [PATCH] Fix email-test.js in travis --- test/integration/email-test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/integration/email-test.js b/test/integration/email-test.js index 6abc976..32cb76c 100644 --- a/test/integration/email-test.js +++ b/test/integration/email-test.js @@ -17,6 +17,8 @@ describe('Email Integration Tests', function() { let email, credentials, userId, origin, publicKeyArmored; + const recipient = { name:'Test User', email:'safewithme.testuser@gmail.com' }; + before(function() { try { credentials = require('../../credentials.json'); @@ -48,8 +50,8 @@ describe('Email Integration Tests', function() { beforeEach(() => { userId = { - name: credentials.sender.name, - email: credentials.sender.email, + name: recipient.name, + email: recipient.email, keyid: '0123456789ABCDF0', nonce: 'qwertzuioasdfghjkqwertzuio', publicKeyArmored @@ -59,8 +61,8 @@ describe('Email Integration Tests', function() { describe("_sendHelper", () => { it('should work', function *() { let mailOptions = { - from: credentials.sender, - to: credentials.sender, + from: email._sender, + to: recipient, subject: 'Hello ✔', // Subject line text: 'Hello world 🐴', // plaintext body html: 'Hello world 🐴' // html body