|
|
|
@ -43,6 +43,16 @@ describe('components/modals/export-data/modal-export-data-view', function () {
|
|
|
|
|
expect(this.view.$('[data-format=csv]:checked').length).toBe(0);
|
|
|
|
|
expect(this.view.$('[data-format=shp]:checked').length).toBe(1);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should render properly for no geometries', function () {
|
|
|
|
|
this.queryGeometryModel.set('simple_geom', null);
|
|
|
|
|
this.view.render();
|
|
|
|
|
|
|
|
|
|
expect(this.view.$('.Modal-listFormItem').length).toBe(5);
|
|
|
|
|
expect(this.view.$('.Modal-listFormItem.is-disabled').length).toBe(4);
|
|
|
|
|
expect(this.view.$('[data-format=csv]:disabled').length).toBe(0);
|
|
|
|
|
expect(this.view.$('[data-format=csv]:checked').length).toBe(1);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('events', function () {
|
|
|
|
|