Skip to content

Commit

Permalink
feat(DH): Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Nov 29, 2023
1 parent 3af3ad5 commit 4e966cd
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions libs/feature/record/src/lib/map-view/map-view.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,25 +745,28 @@ describe('MapViewComponent', () => {
})
})

const vectorLayer = new VectorLayer({
source: new VectorSource({
features: new GeoJSON().readFeatures(
FEATURE_COLLECTION_POINT_FIXTURE_4326,
{
featureProjection: 'EPSG:3857',
dataProjection: 'EPSG:4326',
}
),
}),
})
const selectionFeatures = [
vectorLayer
.getSource()
.getFeatures()
.find((feature) => feature.getId() === 2),
]

describe('feature info', () => {
let selectionFeatures
beforeEach(() => {
const vectorLayer = new VectorLayer({
source: new VectorSource({
features: new GeoJSON().readFeatures(
FEATURE_COLLECTION_POINT_FIXTURE_4326,
{
featureProjection: 'EPSG:3857',
dataProjection: 'EPSG:4326',
}
),
}),
})
selectionFeatures = [
vectorLayer
.getSource()
.getFeatures()
.find((feature) => feature.getId() === 2),
]
})

it('creates selection style', () => {
expect(component['selectionStyle']).toBeTruthy()
})
Expand Down

0 comments on commit 4e966cd

Please sign in to comment.