mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
analytics tests, reduce bcrypt rouds for tests
This commit is contained in:
@@ -322,6 +322,24 @@ describe('socket.io', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should get daily analytics', function (done) {
|
||||
io.emit('admin.analytics.get', {graph: 'traffic', units: 'days'}, function (err, data) {
|
||||
assert.ifError(err);
|
||||
assert(data);
|
||||
assert(data.monthlyPageViews);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should get hourly analytics', function (done) {
|
||||
io.emit('admin.analytics.get', {graph: 'traffic', units: 'hours'}, function (err, data) {
|
||||
assert.ifError(err);
|
||||
assert(data);
|
||||
assert(data.monthlyPageViews);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user