mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: api test
This commit is contained in:
@@ -127,10 +127,12 @@ describe('API', async () => {
|
|||||||
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
|
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
|
||||||
|
|
||||||
const socketUser = require('../src/socket.io/user');
|
const socketUser = require('../src/socket.io/user');
|
||||||
|
const socketAdmin = require('../src/socket.io/admin');
|
||||||
// export data for admin user
|
// export data for admin user
|
||||||
await socketUser.exportProfile({ uid: adminUid }, { uid: adminUid });
|
await socketUser.exportProfile({ uid: adminUid }, { uid: adminUid });
|
||||||
await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });
|
await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });
|
||||||
await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid });
|
await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid });
|
||||||
|
await socketAdmin.user.exportUsersCSV({ uid: adminUid }, {});
|
||||||
// wait for export child process to complete
|
// wait for export child process to complete
|
||||||
await wait(5000);
|
await wait(5000);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user