mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-06 06:40:07 +01:00
fix tests
This commit is contained in:
@@ -437,6 +437,14 @@ describe('Admin Controllers', function () {
|
||||
});
|
||||
|
||||
|
||||
it('should load /posts/flags', function (done) {
|
||||
request(nconf.get('url') + '/api/posts/flags', {jar: jar, json: true}, function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert(body);
|
||||
done();
|
||||
});
|
||||
})
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
@@ -395,7 +395,7 @@ describe('socket.io', function () {
|
||||
assert(data.hasOwnProperty('socketCount'));
|
||||
assert(data.hasOwnProperty('topics'));
|
||||
assert(data.hasOwnProperty('users'));
|
||||
assert.equal(data.topics['1'].title, 'test topic title')
|
||||
assert.equal(data.topics['1'].title, 'test topic title');
|
||||
done();
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user