mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
fix tests
This commit is contained in:
@@ -1080,14 +1080,12 @@ describe('Topic\'s', function () {
|
||||
});
|
||||
|
||||
it('should mark topic notifications read', function (done) {
|
||||
var socketPosts = require('../src/socket.io/posts');
|
||||
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
socketTopics.follow({ uid: adminUid }, tid, next);
|
||||
},
|
||||
function (next) {
|
||||
socketPosts.reply({ uid: uid }, { content: 'some content', tid: tid }, next);
|
||||
topics.reply({ uid: uid, timestamp: Date.now(), content: 'some content', tid: tid }, next);
|
||||
},
|
||||
function (data, next) {
|
||||
setTimeout(next, 2500);
|
||||
|
||||
Reference in New Issue
Block a user