fixing tests

v1.18.x
Julian Lam 8 years ago
parent 3fcc21852c
commit 4c00a5ece6

@ -332,7 +332,7 @@ describe('socket.io', function () {
io.emit('admin.analytics.get', { graph: 'traffic', units: 'days' }, function (err, data) { io.emit('admin.analytics.get', { graph: 'traffic', units: 'days' }, function (err, data) {
assert.ifError(err); assert.ifError(err);
assert(data); assert(data);
assert(data.monthlyPageViews); assert(data.summary);
done(); done();
}); });
}); });
@ -341,7 +341,7 @@ describe('socket.io', function () {
io.emit('admin.analytics.get', { graph: 'traffic', units: 'hours' }, function (err, data) { io.emit('admin.analytics.get', { graph: 'traffic', units: 'hours' }, function (err, data) {
assert.ifError(err); assert.ifError(err);
assert(data); assert(data);
assert(data.monthlyPageViews); assert(data.summary);
done(); done();
}); });
}); });

Loading…
Cancel
Save