Skip to content

Commit

Permalink
chore: add test to check if the hover options are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
silvester-pari committed Oct 29, 2024
1 parent 023908b commit 9fcc629
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions elements/map/test/cases/hover/add-select-interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ const addSelectInteraction = () => {
// moving the cursor to a feature, moving it off the feature, and onto the feature again
expect(featureSelectCounter).to.be.equal(2);
}
expect(
eoxMap.map
.getInteractions()
.getArray()
.find(
(i) =>
i.cursor_ ===
vectorLayerStyleJson[0].interactions[0].options.hover.cursor,
),
).to.exist;
});

eoxMap.map.on("loadend", () => {
Expand Down
3 changes: 3 additions & 0 deletions elements/map/test/fixtures/hoverInteraction.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"stroke-color": "red",
"stroke-width": 3
}
},
"hover": {
"cursor": "zoom-in"
}
}
}
Expand Down

0 comments on commit 9fcc629

Please sign in to comment.