Skip to content

Commit

Permalink
fix: tests adjusted to legend graphic request param
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed Dec 12, 2022
1 parent 105e1a6 commit fca5780
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MapUtil/MapUtil.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ describe('MapUtil', () => {

});

describe('getLegendGraphicUrl', () => {
describe('GetLegendGraphicUrl', () => {
let layer1: OlLayerTile<OlSourceTileWMS>;
let layer2: OlLayerImage<OlSourceImageWMS>;
let layer3: OlLayerTile<OlSourceTileWMS>;
Expand Down Expand Up @@ -465,14 +465,14 @@ describe('MapUtil', () => {
});
});

describe('returns a getLegendGraphicUrl from a given layer', () => {
describe('returns a GetLegendGraphicUrl from a given layer', () => {
it('… for a tiled Layer', () => {
const legendUrl = MapUtil.getLegendGraphicUrl(layer1);
const url = 'https://ows.terrestris.de/osm-gray/service?';
const layerParam = 'LAYER=OSM-WMS';
const versionParam = 'VERSION=1.3.0';
const serviceParam = 'SERVICE=WMS';
const requestParam = 'REQUEST=getLegendGraphic';
const requestParam = 'REQUEST=GetLegendGraphic';
const formatParam = 'FORMAT=image%2Fpng';

expect(legendUrl).toContain(url);
Expand All @@ -488,7 +488,7 @@ describe('MapUtil', () => {
const layerParam = 'LAYER=OSM-WMS';
const versionParam = 'VERSION=1.3.0';
const serviceParam = 'SERVICE=WMS';
const requestParam = 'REQUEST=getLegendGraphic';
const requestParam = 'REQUEST=GetLegendGraphic';
const formatParam = 'FORMAT=image%2Fpng';

expect(legendUrl).toContain(url);
Expand Down Expand Up @@ -526,7 +526,7 @@ describe('MapUtil', () => {
const layerParam = 'LAYER=OSM-WMS';
const versionParam = 'VERSION=1.3.0';
const serviceParam = 'SERVICE=WMS';
const requestParam = 'REQUEST=getLegendGraphic';
const requestParam = 'REQUEST=GetLegendGraphic';
const formatParam = 'FORMAT=image%2Fpng';
const heightParam = 'HEIGHT=10';
const widthParam = 'WIDTH=10';
Expand Down

0 comments on commit fca5780

Please sign in to comment.