Skip to content

Commit

Permalink
【fix】UT
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Apr 9, 2024
1 parent 9a67d3a commit 6e9b255
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/mapboxgl/web-map/__tests__/WebMapViewModel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,17 @@ describe('WebMapViewModel.spec', () => {
mapinitialized: () => {
viewModel._updateDataFlowFeature = jest.fn();
viewModel._handleDataflowFeatures(
{ filterCondition: '2020年人口总数>10' },
{
filterCondition: '2020年人口总数>10', pointStyle: {
"fillColor": "#ee4d5a",
"strokeWidth": 1,
"fillOpacity": 0.9,
"radius": 8,
"strokeColor": "#ffffff",
"type": "BASIC_POINT",
"strokeOpacity": 1
}
},
{ data: JSON.stringify({ properties: { '2020年人口总数': 15 } }) }
);
const res = viewModel.getFilterFeatures('2020年人口总数>10', [{ properties: { '2020年人口总数': 15 } }]);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/mocks/data/WebMap/raster4490.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"baseLayer": {
"layerType": "TILE",
"name": "jubu4490",
"url": "http://172.16.15.131:8090/iserver/services/map-test4490-2/rest/maps/jubu4490"
"url": "http://fake:8090/iserver/services/map-test4490-2/rest/maps/jubu4490"
},
"layers": [],
"description": "",
Expand Down

0 comments on commit 6e9b255

Please sign in to comment.