fix: api test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent cbbda45102
commit 77a6dbacc4

@ -127,10 +127,12 @@ describe('API', async () => {
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
const socketUser = require('../src/socket.io/user');
const socketAdmin = require('../src/socket.io/admin');
// export data for admin user
await socketUser.exportProfile({ uid: adminUid }, { uid: adminUid });
await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });
await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid });
await socketAdmin.user.exportUsersCSV({ uid: adminUid }, {});
// wait for export child process to complete
await wait(5000);

Loading…
Cancel
Save