meta.configs tests

This commit is contained in:
barisusakli
2016-12-16 15:55:34 +03:00
parent 975141bc9b
commit 009da723c5
4 changed files with 180 additions and 109 deletions

View File

@@ -372,6 +372,14 @@ describe('socket.io', function () {
});
});
it('should return error', function (done) {
var socketAdmin = require('../src/socket.io/admin');
socketAdmin.before({uid: 10}, 'someMethod', {}, function (err) {
assert.equal(err.message, '[[error:no-privileges]]');
done();
});
});
after(function (done) {
db.emptydb(done);
});