mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
build(deps): update geostyler-* deps to latest major versions (#38151)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -40,11 +40,11 @@
|
||||
"@superset-ui/core": "*",
|
||||
"@apache-superset/core": "*",
|
||||
"@types/react-redux": "*",
|
||||
"geostyler": "^14.1.3",
|
||||
"geostyler": "^18.3.1",
|
||||
"geostyler-data": "^1.0.0",
|
||||
"geostyler-openlayers-parser": "^4.0.0",
|
||||
"geostyler-style": "^7.2.0",
|
||||
"geostyler-wfs-parser": "^2.0.0",
|
||||
"geostyler-openlayers-parser": "^5.4.0",
|
||||
"geostyler-style": "^11.0.2",
|
||||
"geostyler-wfs-parser": "^3.0.1",
|
||||
"ol": "^10.8.0",
|
||||
"polished": "*",
|
||||
"react": "^17.0.2",
|
||||
|
||||
@@ -36,6 +36,7 @@ describe('layerUtil', () => {
|
||||
describe('createWfsLayer', () => {
|
||||
test('properly applies style', async () => {
|
||||
const colorToExpect = '#123456';
|
||||
const fillColor = '#ff0000';
|
||||
|
||||
const wfsLayerConf: WfsLayerConf = {
|
||||
title: 'osm:osm-fuel',
|
||||
@@ -61,7 +62,7 @@ describe('layerUtil', () => {
|
||||
},
|
||||
{
|
||||
kind: 'Fill',
|
||||
color: '#000000',
|
||||
color: fillColor,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -76,8 +77,8 @@ describe('layerUtil', () => {
|
||||
expect(style!.length).toEqual(3);
|
||||
|
||||
// @ts-expect-error upgrade `ol` package for better type of StyleLike type.
|
||||
const colorAtLayer = style![1].getImage().getFill().getColor();
|
||||
expect(colorToExpect).toEqual(colorAtLayer);
|
||||
const colorAtLayer = style![2].getFill().getColor();
|
||||
expect(colorAtLayer).toEqual(fillColor);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user