18 lines
659 B
JavaScript
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);
|
|
});
|
|
});
|