add test for user settings cache issue

v1.18.x
Barış Soner Uşaklı 8 years ago
parent db532fbb0d
commit 36a2ac0ebd

@ -945,9 +945,13 @@ describe('User', function () {
}; };
socketUser.saveSettings({ uid: testUid }, data, function (err) { socketUser.saveSettings({ uid: testUid }, data, function (err) {
assert.ifError(err); assert.ifError(err);
User.getSettings(testUid, function (err, data) {
assert.ifError(err);
assert.equal(data.usePagination, true);
done(); done();
}); });
}); });
});
it('should set moderation note', function (done) { it('should set moderation note', function (done) {
User.create({ username: 'noteadmin' }, function (err, adminUid) { User.create({ username: 'noteadmin' }, function (err, adminUid) {

Loading…
Cancel
Save