fix: tests

v1.18.x
Baris Usakli 6 years ago
parent cbfbcee50f
commit e71ae80cbc

@ -521,7 +521,7 @@ describe('Admin Controllers', function () {
it('should load /admin/general/social', function (done) { it('should load /admin/general/social', function (done) {
var socketAdmin = require('../src/socket.io/admin'); var socketAdmin = require('../src/socket.io/admin');
socketAdmin.social.savePostSharingNetworks({ uid: adminUid }, ['facebook', 'twitter', 'google'], function (err) { socketAdmin.social.savePostSharingNetworks({ uid: adminUid }, ['facebook', 'twitter'], function (err) {
assert.ifError(err); assert.ifError(err);
request(nconf.get('url') + '/api/admin/general/social', { jar: jar, json: true }, function (err, res, body) { request(nconf.get('url') + '/api/admin/general/social', { jar: jar, json: true }, function (err, res, body) {
assert.ifError(err); assert.ifError(err);
@ -531,7 +531,6 @@ describe('Admin Controllers', function () {
}); });
assert(body.includes('facebook')); assert(body.includes('facebook'));
assert(body.includes('twitter')); assert(body.includes('twitter'));
assert(body.includes('google'));
done(); done();
}); });
}); });

Loading…
Cancel
Save