v1.18.x
Baris Usakli 7 years ago
parent 859b353097
commit c49837143c

@ -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) {

Loading…
Cancel
Save