fix: don't return promise

This commit is contained in:
Barış Soner Uşaklı
2019-07-19 17:02:25 -04:00
parent 44a3352003
commit 2f0a331f02
4 changed files with 10 additions and 9 deletions

View File

@@ -127,7 +127,7 @@ describe('socket.io', function () {
it('should get more unread topics', function (done) {
io.emit('topics.loadMoreSortedTopics', { after: 0, count: 10, direction: 1, sort: 'unread' }, function (err, result) {
assert.ifError(err);
console.log(result);
assert(Array.isArray(result.topics));
done();
});
});