fix: csv test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 700ef1af97
commit 3de692cd52

@ -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) {

Loading…
Cancel
Save