@@ -112,54 +112,6 @@ describe('identify Epics', () => {
112112 }
113113 } , state ) ;
114114 } ) ;
115- it ( 'getFeatureInfoOnFeatureInfoClick WMS with filteredList and override params' , ( done ) => {
116- // remove previous hook
117- registerHook ( 'RESOLUTION_HOOK' , undefined ) ;
118- const state = {
119- map : TEST_MAP_STATE ,
120- mapInfo : {
121- clickPoint : { latlng : { lat : 36.95 , lng : - 79.84 } }
122- } ,
123- layers : {
124- flat : [ {
125- id : "TEST" ,
126- name : "TEST" ,
127- "title" : "TITLE" ,
128- type : "wms" ,
129- visibility : true ,
130- url : 'base/web/client/test-resources/featureInfo-response.json'
131- } ,
132- {
133- id : "TEST2" ,
134- name : "TEST2" ,
135- "title" : "TITLE2" ,
136- type : "wms" ,
137- visibility : true ,
138- url : 'base/web/client/test-resources/featureInfo-response.json'
139- } ]
140- }
141- } ;
142- const sentActions = [ featureInfoClick ( { latlng : { lat : 36.95 , lng : - 79.84 } } , "TEST" , [ "TEST" ] , { "TEST" : { cql_filter : "id>1" } } ) ] ;
143- testEpic ( getFeatureInfoOnFeatureInfoClick , 3 , sentActions , ( [ a0 , a1 , a2 ] ) => {
144- try {
145- expect ( a0 ) . toExist ( ) ;
146- expect ( a0 . type ) . toBe ( PURGE_MAPINFO_RESULTS ) ;
147- expect ( a1 ) . toExist ( ) ;
148- expect ( a1 . type ) . toBe ( NEW_MAPINFO_REQUEST ) ;
149- expect ( a1 . reqId ) . toExist ( ) ;
150- expect ( a1 . request ) . toExist ( ) ;
151- expect ( a2 ) . toExist ( ) ;
152- expect ( a2 . type ) . toBe ( LOAD_FEATURE_INFO ) ;
153- expect ( a2 . data ) . toExist ( ) ;
154- expect ( a2 . requestParams ) . toExist ( ) ;
155- expect ( a2 . reqId ) . toExist ( ) ;
156- expect ( a2 . layerMetadata . title ) . toBe ( state . layers . flat [ 0 ] . title ) ;
157- done ( ) ;
158- } catch ( ex ) {
159- done ( ex ) ;
160- }
161- } , state ) ;
162- } ) ;
163115 it ( 'getFeatureInfoOnFeatureInfoClick with multiSelection' , ( done ) => {
164116 // remove previous hook
165117 registerHook ( 'RESOLUTION_HOOK' , undefined ) ;
0 commit comments