|
|
|
@ -264,6 +264,10 @@ describe('Admin Controllers', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should load /admin/users/csv', function (done) {
|
|
|
|
|
const socketAdmin = require('../src/socket.io/admin');
|
|
|
|
|
socketAdmin.user.exportUsersCSV({ uid: adminUid }, {}, function (err) {
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
request(nconf.get('url') + '/api/admin/users/csv', {
|
|
|
|
|
jar: jar,
|
|
|
|
|
headers: {
|
|
|
|
@ -275,6 +279,8 @@ describe('Admin Controllers', function () {
|
|
|
|
|
assert(body);
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
}, 2000);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should return 403 if no referer', function (done) {
|
|
|
|
|