|
|
|
@ -100,7 +100,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
cartocss: 'wadus'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#045275'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('styles color', function () {
|
|
|
|
@ -124,7 +124,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledTimes(2);
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#ffc6c4'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'choropleth', {title: 'number'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.removeLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'custom_choropleth');
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#045275'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('styles color', function () {
|
|
|
|
@ -223,7 +223,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.removeLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'custom_choropleth', jasmine.any(Function));
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledTimes(2);
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#ffc6c4'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'choropleth', {title: 'number'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -295,7 +295,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
cartocss: 'wadus'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#045275'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('styles color', function () {
|
|
|
|
@ -319,7 +319,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledTimes(2);
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#ffc6c4'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'choropleth', {title: 'number'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -379,7 +379,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
cartocss: 'sudaw'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#045275'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('styles color', function () {
|
|
|
|
@ -416,7 +416,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.removeLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'custom_choropleth', jasmine.any(Function));
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledTimes(2);
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#ffc6c4'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'choropleth', {title: 'number'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -650,7 +650,7 @@ describe('deep-insights-integrations/legend-manager', function () {
|
|
|
|
|
// only once to create a bubble legend, but no choropleth legend
|
|
|
|
|
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledTimes(1);
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number'});
|
|
|
|
|
expect(LegendFactory.createLegend).toHaveBeenCalledWith(this.layerDefinitionModel, 'bubble', {title: 'number', fillColor: '#ffc6c4'});
|
|
|
|
|
expect(LegendFactory.createLegend).not.toHaveBeenCalledWith(this.layerDefinitionModel, 'choropleth', {title: 'number'});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|