diff --git a/core/test/unit/services/mail/GhostMailer_spec.js b/core/test/unit/services/mail/GhostMailer_spec.js index bedeefecb0..11c44389d1 100644 --- a/core/test/unit/services/mail/GhostMailer_spec.js +++ b/core/test/unit/services/mail/GhostMailer_spec.js @@ -146,7 +146,7 @@ describe('Mail: Ghostmailer', function () { mailer.send(mailDataNoServer).then(function () { done(new Error('Error message not shown.')); }, function (error) { - error.message.should.eql('Failed to send email.'); + error.message.should.startWith('Failed to send email.'); done(); }).catch(done); });