mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: make it async
This commit is contained in:
@@ -19,6 +19,6 @@ Settings.set = async function (socket, data) {
|
|||||||
await events.log(eventData);
|
await events.log(eventData);
|
||||||
};
|
};
|
||||||
|
|
||||||
Settings.clearSitemapCache = function () {
|
Settings.clearSitemapCache = async function () {
|
||||||
require('../../sitemap').clearCache();
|
require('../../sitemap').clearCache();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -564,9 +564,8 @@ describe('socket.io', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should clear sitemap cache', (done) => {
|
it('should clear sitemap cache', async () => {
|
||||||
socketAdmin.settings.clearSitemapCache({ uid: adminUid }, {});
|
await socketAdmin.settings.clearSitemapCache({ uid: adminUid }, {});
|
||||||
done();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send test email', async () => {
|
it('should send test email', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user