From c49837143cbe38e42660371032bb8ce0501fef25 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 21 Sep 2017 14:51:00 -0400 Subject: [PATCH] fix test --- test/socket.io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {