@@ -65,9 +65,6 @@ describe('ems_client', () => {
65
65
'https://tiles.foobar/raster/styles/osm-bright/{z}/{x}/{y}.png?elastic_tile_service_tos=agree&my_app_name=tester&my_app_version=7.x.x'
66
66
) ;
67
67
68
- expect ( tileService . getHTMLAttribution ( ) ) . toBe (
69
- '<a rel="noreferrer noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a> | <a rel="noreferrer noopener" href="https://openmaptiles.org">OpenMapTiles</a> | <a rel="noreferrer noopener" href="https://www.maptiler.com">MapTiler</a> | <a rel="noreferrer noopener" href="https://www.elastic.co/elastic-maps-service">Elastic Maps Service</a>'
70
- ) ;
71
68
expect ( await tileService . getMinZoom ( ) ) . toBe ( 0 ) ;
72
69
expect ( await tileService . getMaxZoom ( ) ) . toBe ( 10 ) ;
73
70
expect ( tileService . hasId ( 'road_map' ) ) . toBe ( true ) ;
@@ -89,9 +86,6 @@ describe('ems_client', () => {
89
86
'https://tiles.foobar/raster/styles/osm-bright/{z}/{x}/{y}.png?elastic_tile_service_tos=agree&my_app_name=tester&my_app_version=7.x.x'
90
87
) ;
91
88
92
- expect ( tileService . getHTMLAttribution ( ) ) . toBe (
93
- '<a rel="noreferrer noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a> | <a rel="noreferrer noopener" href="https://openmaptiles.org">OpenMapTiles</a> | <a rel="noreferrer noopener" href="https://www.maptiler.com">MapTiler</a> | <a rel="noreferrer noopener" href="https://www.elastic.co/elastic-maps-service">Elastic Maps Service</a>'
94
- ) ;
95
89
expect ( await tileService . getMinZoom ( ) ) . toBe ( 0 ) ;
96
90
expect ( await tileService . getMaxZoom ( ) ) . toBe ( 10 ) ;
97
91
expect ( tileService . hasId ( 'road_map' ) ) . toBe ( true ) ;
@@ -175,10 +169,6 @@ describe('ems_client', () => {
175
169
} ,
176
170
] ) ;
177
171
178
- expect ( layer . getHTMLAttribution ( ) ) . toBe (
179
- '<a rel="noreferrer noopener" href="http://www.naturalearthdata.com/about/terms-of-use">Made with NaturalEarth</a> | <a rel="noreferrer noopener" href="https://www.elastic.co/elastic-maps-service">Elastic Maps Service</a>'
180
- ) ;
181
-
182
172
expect ( layer . getDisplayName ( ) ) . toBe ( 'World Countries' ) ;
183
173
} ) ;
184
174
@@ -197,10 +187,6 @@ describe('ems_client', () => {
197
187
const layer = layers [ 0 ] ;
198
188
expect ( layer . getId ( ) ) . toBe ( 'world_countries' ) ;
199
189
expect ( layer . hasId ( 'world_countries' ) ) . toBe ( true ) ;
200
-
201
- expect ( layer . getHTMLAttribution ( ) ) . toBe (
202
- '<a rel="noreferrer noopener" href="http://www.naturalearthdata.com/about/terms-of-use">Made with NaturalEarth</a> | <a rel="noreferrer noopener" href="https://www.elastic.co/elastic-maps-service">Elastic Maps Service</a>'
203
- ) ;
204
190
expect ( layer . getDisplayName ( ) ) . toBe ( 'pays' ) ;
205
191
206
192
const fields = layer . getFieldsInLanguage ( ) ;
@@ -228,10 +214,6 @@ describe('ems_client', () => {
228
214
const layer = layers [ 0 ] ;
229
215
expect ( layer . getId ( ) ) . toBe ( 'world_countries' ) ;
230
216
expect ( layer . hasId ( 'world_countries' ) ) . toBe ( true ) ;
231
-
232
- expect ( layer . getHTMLAttribution ( ) ) . toBe (
233
- '<a rel="noreferrer noopener" href="http://www.naturalearthdata.com/about/terms-of-use">Made with NaturalEarth</a> | <a rel="noreferrer noopener" href="https://www.elastic.co/elastic-maps-service">Elastic Maps Service</a>'
234
- ) ;
235
217
expect ( layer . getDisplayName ( ) ) . toBe ( 'World Countries' ) ;
236
218
237
219
const fields = layer . getFieldsInLanguage ( ) ;
0 commit comments