Skip to content

Node.js based forum software built for the modern web

fix test

Baris Usaklic49837143cbe
diff --git a/test/socket.io.js b/test/socket.io.js
index 547895f970..76f7ae6a72 100644
--- a/test/socket.io.js
+++ b/test/socket.io.js
@@ -513,7 +513,7 @@ describe('socket.io', function () {
});
it('should error with invalid data', function (done) {
- var data = { template: 'global', location: 'sidebar', widgets: [{ widget: 'html', data: { html: 'test', title: 'test', container: '' } }] };
+ var data = [{ template: 'global', location: 'sidebar', widgets: [{ widget: 'html', data: { html: 'test', title: 'test', container: '' } }] }];
socketAdmin.widgets.set({ uid: adminUid }, data, function (err) {
assert.ifError(err);
db.getObjectField('widgets:global', 'sidebar', function (err, widgetData) {