Skip to content

Node.js based forum software built for the modern web

fixing tests

Julian Lam4c00a5ece6a0
diff --git a/test/socket.io.js b/test/socket.io.js
index fc24d24e30..820a845c82 100644
--- a/test/socket.io.js
+++ b/test/socket.io.js
@@ -332,7 +332,7 @@ describe('socket.io', function () {
io.emit('admin.analytics.get', { graph: 'traffic', units: 'days' }, function (err, data) {
assert.ifError(err);
assert(data);
- assert(data.monthlyPageViews);
+ assert(data.summary);
done();
});
});
@@ -341,7 +341,7 @@ describe('socket.io', function () {
io.emit('admin.analytics.get', { graph: 'traffic', units: 'hours' }, function (err, data) {
assert.ifError(err);
assert(data);
- assert(data.monthlyPageViews);
+ assert(data.summary);
done();
});
});