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