|
|
@ -315,8 +315,7 @@ describe('socket.io', function () {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('should get server time', function (done) {
|
|
|
|
it('should get server time', function (done) {
|
|
|
|
var socketMeta = require('../src/socket.io/meta');
|
|
|
|
io.emit('admin.getServerTime', null, function (err, time) {
|
|
|
|
socketMeta.getServerTime({ uid: 1 }, null, function (err, time) {
|
|
|
|
|
|
|
|
assert.ifError(err);
|
|
|
|
assert.ifError(err);
|
|
|
|
assert(time);
|
|
|
|
assert(time);
|
|
|
|
done();
|
|
|
|
done();
|
|
|
|