diff --git a/test/integration/emailnotifications.js b/test/integration/emailnotifications.js index 8558814..638991c 100644 --- a/test/integration/emailnotifications.js +++ b/test/integration/emailnotifications.js @@ -98,11 +98,8 @@ describe('Email notifications', function() { var one = emails[0]; one.from.should.equal('bws@dummy.net'); one.subject.should.contain('New payment proposal'); - one.text.should.contain(wallet.name); - one.text.should.contain(wallet.copayers[0].name); should.exist(one.html); one.html.indexOf('').should.equal(0); - one.html.should.contain(wallet.name); server.storage.fetchUnsentEmails(function(err, unsent) { should.not.exist(err); unsent.should.be.empty; @@ -202,7 +199,6 @@ describe('Email notifications', function() { var one = emails[0]; one.from.should.equal('bws@dummy.net'); one.subject.should.contain('Payment sent'); - one.text.should.contain(wallet.name); one.text.should.contain('800,000'); should.exist(one.html); one.html.should.contain('https://insight.bitpay.com/tx/' + txp.txid); @@ -258,9 +254,6 @@ describe('Email notifications', function() { var one = emails[0]; one.from.should.equal('bws@dummy.net'); one.subject.should.contain('Payment proposal rejected'); - one.text.should.contain(wallet.name); - one.text.should.contain('copayer 2, copayer 3'); - one.text.should.not.contain('copayer 1'); server.storage.fetchUnsentEmails(function(err, unsent) { should.not.exist(err); unsent.should.be.empty; @@ -291,7 +284,6 @@ describe('Email notifications', function() { var one = emails[0]; one.from.should.equal('bws@dummy.net'); one.subject.should.contain('New payment received'); - one.text.should.contain(wallet.name); one.text.should.contain('123,000'); server.storage.fetchUnsentEmails(function(err, unsent) { should.not.exist(err); @@ -327,7 +319,6 @@ describe('Email notifications', function() { var one = emails[0]; one.from.should.equal('bws@dummy.net'); one.subject.should.contain('New payment received'); - one.text.should.contain(wallet.name); one.text.should.contain('123,000'); server.storage.fetchUnsentEmails(function(err, unsent) { should.not.exist(err); @@ -367,14 +358,12 @@ describe('Email notifications', function() { }); spanish.from.should.equal('bws@dummy.net'); spanish.subject.should.contain('Nuevo pago recibido'); - spanish.text.should.contain(wallet.name); spanish.text.should.contain('0.123 BTC'); var english = _.find(emails, { to: 'copayer2@domain.com' }); english.from.should.equal('bws@dummy.net'); english.subject.should.contain('New payment received'); - english.text.should.contain(wallet.name); english.text.should.contain('123,000 bits'); done(); }, 100); diff --git a/test/integration/pushNotifications.js b/test/integration/pushNotifications.js index ec0a550..364382d 100644 --- a/test/integration/pushNotifications.js +++ b/test/integration/pushNotifications.js @@ -362,8 +362,6 @@ describe('Push notifications', function() { }); args[0].body.notification.title.should.contain('Payment proposal rejected'); - args[0].body.notification.body.should.contain('copayer 2, copayer 3'); - args[0].body.notification.body.should.not.contain('copayer 1'); done(); }, 100); });