Skip to content

Commit

Permalink
improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Oct 19, 2023
1 parent 3f7ac4f commit bbc4d53
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions web/client/epics/__tests__/geoProcessing-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,22 +603,22 @@ describe('geoProcessing epics', () => {
}, {});
});
it('runIntersectProcessGPTEpic with double geom collect', (done) => {
const NUM_ACTIONS = 7;
mockAxios.onGet("mockUrl?service=WFS&version=1.1.0&request=GetFeature").reply(200, GET_FEATURES);
mockAxios
.onPost("mockUrl?service=WPS&version=1.0.0&REQUEST=Execute")
.replyOnce(200, COLLECT_GEOM, {
"content-type": "application/json"
})
.onPost("mockUrl?service=WPS&version=1.0.0&REQUEST=Execute")
.replyOnce(200, MULTIPOLYGON_FC, {
try {
const NUM_ACTIONS = 7;
mockAxios.onGet("mockUrl?service=WFS&version=1.1.0&request=GetFeature").reply(200, GET_FEATURES);
mockAxios
.onPost("mockUrl?service=WPS&version=1.0.0&REQUEST=Execute")
.replyOnce(200, COLLECT_GEOM, {
"content-type": "application/json"
})
.onPost("mockUrl?service=WPS&version=1.0.0&REQUEST=Execute")
.replyOnce(200, MULTIPOLYGON_FC, {
"content-type": "application/json"
});
mockAxios.onGet("mockUrl2?service=WFS&version=1.1.0&request=GetFeature").reply(200, GET_FEATURES);
mockAxios.onPost("mockUrl2?service=WPS&version=1.0.0&REQUEST=Execute").replyOnce(200, COLLECT_GEOM, {
"content-type": "application/json"
});
mockAxios.onGet("mockUrl2?service=WFS&version=1.1.0&request=GetFeature").reply(200, GET_FEATURES);
mockAxios.onPost("mockUrl2?service=WPS&version=1.0.0&REQUEST=Execute").replyOnce(200, COLLECT_GEOM, {
"content-type": "application/json"
});
try {

const startActions = [runProcess(GPT_TOOL_INTERSECTION)];
testEpic(addTimeoutEpic(runIntersectProcessGPTEpic, 100), NUM_ACTIONS, startActions, actions => {
Expand Down Expand Up @@ -672,6 +672,8 @@ describe('geoProcessing epics', () => {
}
});
} catch (e) {
// eslint-disable-next-line no-console
console.log(e);
done(e);
}
});
Expand Down

0 comments on commit bbc4d53

Please sign in to comment.