New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eox/itemfilter

Package Overview
Dependencies
Maintainers
5
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eox/itemfilter - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

test/_mockMap.js

7

package.json
{
"name": "@eox/itemfilter",
"version": "0.9.0",
"version": "0.10.0",
"type": "module",

@@ -31,6 +31,7 @@ "devDependencies": {

"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@turf/boolean-intersects": "^6.5.0",
"@turf/boolean-within": "^6.5.0",
"fuse.js": "^6.6.2",
"lit": "^2.7.4",
"fuse.js": "^7.0.0",
"lit": "^3.0.2",
"lodash.debounce": "^4.0.8",

@@ -37,0 +38,0 @@ "toolcool-range-slider": "^4.0.27"

import "../src/main";
import "./_mockMap";
import testItems from "./testItems.json";

@@ -89,8 +90,12 @@

.within(() => {
cy.get('[type="checkbox"]').first().check();
cy.get('[type="checkbox"]').eq(1).check();
cy.get('[type="checkbox"]').first().check();
cy.get('[type="checkbox"]').first().should("be.checked");
cy.get('[type="checkbox"]').eq(1).check();
cy.get('[type="checkbox"]').eq(1).should("be.checked");
cy.get("eox-selectionlist")
.shadow()
.within(() => {
cy.get('[type="checkbox"]').first().check();
cy.get('[type="checkbox"]').eq(1).check();
cy.get('[type="checkbox"]').first().check();
cy.get('[type="checkbox"]').first().should("be.checked");
cy.get('[type="checkbox"]').eq(1).check();
cy.get('[type="checkbox"]').eq(1).should("be.checked");
});
});

@@ -192,2 +197,34 @@ });

});
it("should show the map when spatial filter is enabled", () => {
cy.get("eox-itemfilter").and(($el) => {
const eoxItemFilter = <EOxItemFilter>$el[0];
eoxItemFilter.config = {
titleProperty: "title",
filterProperties: [
{
key: "geometry",
type: "spatial",
expanded: true,
},
],
};
eoxItemFilter.apply(testItems);
});
cy.get("eox-itemfilter")
.shadow()
.within(() => {
cy.get("eox-itemfilter-spatial")
.get("eox-itemfilter-spatial-filter")
.shadow()
.within(() => {
cy.get("eox-map").should("exist");
cy.get("eox-map")
.shadow()
.within(() => {
cy.get("canvas").should("exist");
});
});
});
});
});

@@ -37,6 +37,7 @@ import "../src/main";

.within(() => {
cy.get("input[data-cy=multiselect-checkbox][checked]").should(
"have.length",
2
);
cy.get("eox-selectionlist")
.shadow()
.within(() => {
cy.get('[type="checkbox"]:checked').should("have.length", 2);
});
});

@@ -43,0 +44,0 @@ });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc