cartodb-4.42/lib/assets/test/spec/deep-insights/widgets/time-series/time-series-widget-model.spec.js
2024-04-06 05:25:13 +00:00

18 lines
659 B
JavaScript

var Backbone = require('backbone');
var TimeSeriesWidgetModel = require('../../../../../javascripts/deep-insights/widgets/time-series/time-series-widget-model');
describe('widgets/time-series/time-series-widget-model', function () {
beforeEach(function () {
this.model = new TimeSeriesWidgetModel(null, {
dataviewModel: new Backbone.Model(),
layerModel: new Backbone.Model()
});
});
it('should set normalized default and default state', function () {
expect(this.model.get('normalized')).toBe(true);
expect(this.model.getState().normalized).toBeDefined();
expect(this.model.getState().normalized).toBe(true);
});
});