Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Nov 27, 2017
1 parent 2a785dd commit 00e7d5d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/client/epics/__tests__/featuregrid-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1370,13 +1370,18 @@ describe('featuregrid Epics', () => {
};

const newState = assign({}, state, stateFeaturegrid);
testEpic(startSyncWmsFilter, 1, toggleSyncWms(), actions => {
expect(actions.length).toBe(1);
proj4.defs("EPSG:3044", "+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs");
testEpic(startSyncWmsFilter, 2, toggleSyncWms(), actions => {
expect(actions.length).toBe(2);
actions.map((action) => {
switch (action.type) {
case START_SYNC_WMS:
expect(action.type).toBe(START_SYNC_WMS);
break;
case CHANGE_LAYER_PROPERTIES:
expect(action.type).toBe(CHANGE_LAYER_PROPERTIES);
expect(action.newProperties.nativeCrs).toBe("EPSG:3044");
break;
default:
expect(true).toBe(false);
}
Expand Down

0 comments on commit 00e7d5d

Please sign in to comment.