Skip to content

Commit

Permalink
#42 Updated test; Test changes to resolve map toolbar padding on map …
Browse files Browse the repository at this point in the history
…info toggle.
  • Loading branch information
alexander-fedorenko committed Feb 28, 2022
1 parent 253fd74 commit f64d7b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions js/extension/epics/__tests__/urbanisme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,17 @@ describe('Urbanisme EPICS', () => {
};
testEpic(
toggleLandPlanningEpic,
5,
4,
toggleControl('urbanisme', null),
actions => {
expect(actions.length).toBe(5);
expect(actions.length).toBe(4);
actions.map(action=> {
switch (action.type) {
case UPDATE_ADDITIONAL_LAYER:
expect(action.options).toBeTruthy();
expect([URBANISME_RASTER_LAYER_ID, URBANISME_VECTOR_LAYER_ID].includes(action.options.id)).toBeTruthy();
break;
case TOGGLE_MAPINFO_STATE:
case PURGE_MAPINFO_RESULTS:
break;
case TOGGLE_CONTROL:
expect(action.control).toBe('measure');
Expand Down
4 changes: 2 additions & 2 deletions js/extension/epics/urbanisme.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
purgeMapInfoResults, SET_MAP_TRIGGER, setMapTrigger,
TOGGLE_MAPINFO_STATE,
toggleMapInfoState,
hideMapinfoMarker
hideMapinfoMarker, closeIdentify
} from "@mapstore/actions/mapInfo";

import {localConfigSelector} from '@mapstore/selectors/localConfig';
Expand Down Expand Up @@ -292,7 +292,7 @@ export const deactivateOnIdentifyEnabledEpic = (action$, {getState}) =>
? Rx.Observable.from([
toggleGFIPanel(false),
toggleUrbanismeTool(null),
purgeMapInfoResults()
closeIdentify()
])
: Rx.Observable.empty();
});
Expand Down

0 comments on commit f64d7b0

Please sign in to comment.