mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
cleaunup
This commit is contained in:
@@ -62,9 +62,6 @@ define('forum/flags/detail', [
|
|||||||
Detail.reloadHistory(payload.history);
|
Detail.reloadHistory(payload.history);
|
||||||
}).catch(alerts.error);
|
}).catch(alerts.error);
|
||||||
},
|
},
|
||||||
onShown: (e) => {
|
|
||||||
console.log(e);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ helpers.copyFile = function (source, target, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
helpers.invite = async function (data, uid, jar, csrf_token) {
|
helpers.invite = async function (data, uid, jar, csrf_token) {
|
||||||
const { response, body } = await request.post(`${nconf.get('url')}/api/v3/users/${uid}/invites`, {
|
return await request.post(`${nconf.get('url')}/api/v3/users/${uid}/invites`, {
|
||||||
jar: jar,
|
jar: jar,
|
||||||
data: data,
|
data: data,
|
||||||
headers: {
|
headers: {
|
||||||
@@ -171,9 +171,6 @@ helpers.invite = async function (data, uid, jar, csrf_token) {
|
|||||||
},
|
},
|
||||||
validateStatus: null,
|
validateStatus: null,
|
||||||
});
|
});
|
||||||
console.log(response.status, body);
|
|
||||||
|
|
||||||
return { response, body };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
helpers.createFolder = async function (path, folderName, jar, csrf_token) {
|
helpers.createFolder = async function (path, folderName, jar, csrf_token) {
|
||||||
|
|||||||
@@ -363,7 +363,6 @@ describe('Plugins', () => {
|
|||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert(Array.isArray(data));
|
assert(Array.isArray(data));
|
||||||
data.forEach((pluginData) => {
|
data.forEach((pluginData) => {
|
||||||
console.log(pluginData);
|
|
||||||
assert(activePlugins.includes(pluginData));
|
assert(activePlugins.includes(pluginData));
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user