@eox/layercontrol 0.6.7 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/_mockMap.ts CHANGED
@@ -23,7 +23,7 @@ const mockLayer = (
23
23
  id: layerId,
24
24
  layerControlDisable: undefined,
25
25
  layerControlExclusive: undefined,
26
- layerControlExpanded: undefined,
26
+ layerControlExpand: undefined,
27
27
  layerControlHide: undefined,
28
28
  layerControlOptional: undefined,
29
29
  opacity: 1,
@@ -86,11 +86,11 @@ describe("LayerControl", () => {
86
86
  });
87
87
  });
88
88
 
89
- it("pre-opens a section if layerControlExpanded is present", () => {
89
+ it("pre-opens a section if layerControlExpand is present", () => {
90
90
  cy.get("mock-map").and(($el) => {
91
91
  (<MockMap>$el[0]).setLayers([
92
92
  { visible: true },
93
- { layerControlExpanded: true },
93
+ { layerControlExpand: true },
94
94
  ]);
95
95
  });
96
96
  cy.get("eox-layercontrol")
@@ -59,7 +59,7 @@ describe("LayerControl", () => {
59
59
  {
60
60
  title: "group",
61
61
  layers: [{ title: "foo" }],
62
- layerControlExpanded: true,
62
+ layerControlExpand: true,
63
63
  },
64
64
  { title: "bar" },
65
65
  ]);
@@ -83,7 +83,7 @@ describe("LayerControl", () => {
83
83
  it("updates if a layer is removed from the root collection", () => {
84
84
  cy.get("mock-map").and(($el) => {
85
85
  (<MockMap>$el[0]).setLayers([
86
- { id: "foo", layerControlExpanded: true },
86
+ { id: "foo", layerControlExpand: true },
87
87
  { id: "bar" },
88
88
  ]);
89
89
  });
@@ -113,7 +113,7 @@ describe("LayerControl", () => {
113
113
  {
114
114
  title: "group",
115
115
  layers: [{ title: "baz" }],
116
- layerControlExpanded: true,
116
+ layerControlExpand: true,
117
117
  },
118
118
  { title: "bar" },
119
119
  ]);
@@ -137,7 +137,7 @@ describe("LayerControl", () => {
137
137
  {
138
138
  title: "group1",
139
139
  layers: [{ title: "title1" }],
140
- layerControlExpanded: true,
140
+ layerControlExpand: true,
141
141
  },
142
142
  {
143
143
  title: "group2",
@@ -145,7 +145,7 @@ describe("LayerControl", () => {
145
145
  { title: "foo" },
146
146
  { title: "title2", layerControlOptional: true, visible: false },
147
147
  ],
148
- layerControlExpanded: true,
148
+ layerControlExpand: true,
149
149
  },
150
150
  ]);
151
151
  });