Fix email-test.js in travis
This commit is contained in:
parent
3a91aacbbf
commit
fd82d5ff78
@ -17,6 +17,8 @@ describe('Email Integration Tests', function() {
|
|||||||
|
|
||||||
let email, credentials, userId, origin, publicKeyArmored;
|
let email, credentials, userId, origin, publicKeyArmored;
|
||||||
|
|
||||||
|
const recipient = { name:'Test User', email:'safewithme.testuser@gmail.com' };
|
||||||
|
|
||||||
before(function() {
|
before(function() {
|
||||||
try {
|
try {
|
||||||
credentials = require('../../credentials.json');
|
credentials = require('../../credentials.json');
|
||||||
@ -48,8 +50,8 @@ describe('Email Integration Tests', function() {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
userId = {
|
userId = {
|
||||||
name: credentials.sender.name,
|
name: recipient.name,
|
||||||
email: credentials.sender.email,
|
email: recipient.email,
|
||||||
keyid: '0123456789ABCDF0',
|
keyid: '0123456789ABCDF0',
|
||||||
nonce: 'qwertzuioasdfghjkqwertzuio',
|
nonce: 'qwertzuioasdfghjkqwertzuio',
|
||||||
publicKeyArmored
|
publicKeyArmored
|
||||||
@ -59,8 +61,8 @@ describe('Email Integration Tests', function() {
|
|||||||
describe("_sendHelper", () => {
|
describe("_sendHelper", () => {
|
||||||
it('should work', function *() {
|
it('should work', function *() {
|
||||||
let mailOptions = {
|
let mailOptions = {
|
||||||
from: credentials.sender,
|
from: email._sender,
|
||||||
to: credentials.sender,
|
to: recipient,
|
||||||
subject: 'Hello ✔', // Subject line
|
subject: 'Hello ✔', // Subject line
|
||||||
text: 'Hello world 🐴', // plaintext body
|
text: 'Hello world 🐴', // plaintext body
|
||||||
html: '<b>Hello world 🐴</b>' // html body
|
html: '<b>Hello world 🐴</b>' // html body
|
||||||
|
Loading…
Reference in New Issue
Block a user