mailer: fix error handling
previous mailer code has no callback and thus no way to pass back errors. now with asyncification it passes back the error
This commit is contained in:
@@ -62,12 +62,9 @@ describe('Settings', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it ('can get default cloudron name', function (done) {
|
||||
settings.getCloudronName(function (error, name) {
|
||||
expect(error).to.be(null);
|
||||
expect(name).to.be('Cloudron');
|
||||
done();
|
||||
});
|
||||
it ('can get default cloudron name', async function () {
|
||||
const name = await settings.getCloudronName();
|
||||
expect(name).to.be('Cloudron');
|
||||
});
|
||||
|
||||
it('can get default cloudron avatar', async function () {
|
||||
|
||||
Reference in New Issue
Block a user