more admin socket tests

This commit is contained in:
barisusakli
2017-02-28 15:16:49 +03:00
parent bb1045c5a0
commit 8a0cf6c0ac
4 changed files with 252 additions and 76 deletions

View File

@@ -123,6 +123,17 @@ describe('meta', function () {
});
});
it('should set single config value', function (done) {
socketAdmin.config.set({ uid: fooUid }, { key: 'someKey', value: 'someValue' }, function (err) {
assert.ifError(err);
meta.configs.getFields(['someKey'], function (err, data) {
assert.ifError(err);
assert.equal(data.someKey, 'someValue');
done();
});
});
});
it('should set config value', function (done) {
meta.configs.set('someField', 'someValue', function (err) {
assert.ifError(err);