var _ = require('underscore');
var cdb = require('cartodb.js');
var WidgetView = require('../../src/widgets/widget-view');
var WidgetModel = require('../../src/widgets/widget-model');

describe('widgets/widget-view', function () {
  beforeEach(function () {
    this.dataviewModel = new cdb.core.Model();
    this.dataviewModel.layer = new cdb.core.Model();
    var widgetModel = new WidgetModel({}, {
      dataviewModel: this.dataviewModel
    });
    this.view = new WidgetView({
      model: widgetModel,
      contentView: new cdb.core.View()
    });
    this.view.render();
  });
});

var cdb = require('cartodb.js');
var WidgetView = require('../../src/widgets/widget-view');
var WidgetModel = require('../../src/widgets/widget-model');

describe('widgets/widget-view', function () {
  beforeEach(function () {
    this.dataviewModel = new cdb.core.Model();
    this.dataviewModel.layer = new cdb.core.Model();
    var widgetModel = new WidgetModel({}, {
      dataviewModel: this.dataviewModel
    });
    this.view = new WidgetView({
      model: widgetModel,
      contentView: new cdb.core.View()
    });
    this.view.render();
  });
});

Fix linter