cartodb-4.42/lib/assets/test/spec/deep-insights/widgets/time-series/time-series-widget-model.spec.js

18 lines
659 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
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);
});
});