|
|
@ -353,7 +353,7 @@ describe('Wallet service', function() { |
|
|
|
var _readTemplateFile_old = emailService._readTemplateFile; |
|
|
|
emailService._readTemplateFile = function(language, filename, cb) { |
|
|
|
if (_.endsWith(filename, '.html')) { |
|
|
|
return cb(null, 'Subject\n<html><body>{{walletName}}</body></html>'); |
|
|
|
return cb(null, '<html><body>{{walletName}}</body></html>'); |
|
|
|
} else { |
|
|
|
_readTemplateFile_old.call(emailService, language, filename, cb); |
|
|
|
} |
|
|
@ -375,7 +375,7 @@ describe('Wallet service', function() { |
|
|
|
one.text.should.contain(wallet.name); |
|
|
|
one.text.should.contain(wallet.copayers[0].name); |
|
|
|
should.exist(one.html); |
|
|
|
one.html.should.contain('<body>'); |
|
|
|
one.html.indexOf('<html>').should.equal(0); |
|
|
|
one.html.should.contain(wallet.name); |
|
|
|
server.storage.fetchUnsentEmails(function(err, unsent) { |
|
|
|
should.not.exist(err); |
|
|
|