fix subject

This commit is contained in:
Girish Ramakrishnan 2016-06-24 12:02:31 -05:00
parent ff33d737fc
commit baa1dd5963

View File

@ -76,13 +76,13 @@ describe('Cloudron backup testing', function () {
});
it('can send mail from cloudron user', function (done) {
cloudron.sendMail(owner, 'test+fromcloudron@cloudron.io', done);
cloudron.sendMail(owner, 'test+' + cloudron.fqdn() + '@cloudron.io', done);
});
it('did send mail from cloudron user', function (done) {
imap.probe({
subject: new RegExp('^Hi from e2e test$'),
to: /test+fromcloudron@cloudron.io/,
subject: new RegExp('^Hi from e2e test - ' + cloudron.fqdn() + '$'),
to: new RegExp('test+' + cloudron.fqdn() + '@cloudron.io'),
body: /This release depends on you/
}, done);
});