test: make it async

isekai-main
Barış Soner Uşaklı 3 years ago
parent 26f00ffb60
commit 5c3d5f1f40

@ -19,6 +19,6 @@ Settings.set = async function (socket, data) {
await events.log(eventData);
};
Settings.clearSitemapCache = function () {
Settings.clearSitemapCache = async function () {
require('../../sitemap').clearCache();
};

@ -564,9 +564,8 @@ describe('socket.io', () => {
});
});
it('should clear sitemap cache', (done) => {
socketAdmin.settings.clearSitemapCache({ uid: adminUid }, {});
done();
it('should clear sitemap cache', async () => {
await socketAdmin.settings.clearSitemapCache({ uid: adminUid }, {});
});
it('should send test email', async () => {

Loading…
Cancel
Save