Skip to content

Commit be04804

Browse files
committed
Fix integration tests
1 parent 94fdc2b commit be04804

File tree

2 files changed

+16
-29
lines changed

2 files changed

+16
-29
lines changed

test/integration/style-spec/tests/functions.input.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -934,15 +934,6 @@
934934
"fill-extrusion-opacity": ["get", "opacity"]
935935
}
936936
},
937-
{
938-
"id": "invalid expression - line-dasharray must use step interpolation",
939-
"type": "line",
940-
"source": "source",
941-
"source-layer": "layer",
942-
"paint": {
943-
"line-dasharray": ["interpolate", ["linear"], ["zoom"], 0, ["literal", [1, 2]], 1, ["literal", [3, 4]]]
944-
}
945-
},
946937
{
947938
"id": "invalid expression - heatmap-color must be zoom constant",
948939
"type": "heatmap",

test/integration/style-spec/tests/functions.output.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"line": 75
2929
},
3030
{
31-
"message": "layers[6].paint.line-dasharray.stops[0][0]: number expected, string found",
31+
"message": "layers[6].paint.line-dasharray.stops[0][0]: number expected, string found\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.",
3232
"line": 89
3333
},
3434
{
@@ -184,39 +184,35 @@
184184
"line": 934
185185
},
186186
{
187-
"message": "layers[52].paint.line-dasharray: Type array<number> is not interpolatable.",
187+
"message": "layers[52].paint.heatmap-color: zoom expressions not supported",
188188
"line": 943
189189
},
190190
{
191-
"message": "layers[53].paint.heatmap-color: zoom expressions not supported",
192-
"line": 952
191+
"message": "layers[53].paint.heatmap-color: zoom functions not supported",
192+
"line": 951
193193
},
194194
{
195-
"message": "layers[54].paint.heatmap-color: zoom functions not supported",
196-
"line": 960
195+
"message": "layers[54].layout.line-join: \"feature-state\" data expressions are not supported with layout properties.",
196+
"line": 959
197197
},
198198
{
199-
"message": "layers[55].layout.line-join: \"feature-state\" data expressions are not supported with layout properties.",
200-
"line": 968
199+
"message": "layers[55].paint.line-width.stops[0][1]: expressions are not allowed in function stops.",
200+
"line": 972
201201
},
202202
{
203-
"message": "layers[56].paint.line-width.stops[0][1]: expressions are not allowed in function stops.",
204-
"line": 981
203+
"message": "layers[56]: layer \"invalid expression - color-relief-color must be zoom constant\" requires a raster-dem source",
204+
"line": 983
205205
},
206206
{
207-
"message": "layers[57]: layer \"invalid expression - color-relief-color must be zoom constant\" requires a raster-dem source",
208-
"line": 992
207+
"message": "layers[56].paint.color-relief-color: zoom expressions not supported",
208+
"line": 986
209209
},
210210
{
211-
"message": "layers[57].paint.color-relief-color: zoom expressions not supported",
212-
"line": 995
211+
"message": "layers[57]: layer \"invalid expression - color-relief-color must not be a function\" requires a raster-dem source",
212+
"line": 991
213213
},
214214
{
215-
"message": "layers[58]: layer \"invalid expression - color-relief-color must not be a function\" requires a raster-dem source",
216-
"line": 1000
217-
},
218-
{
219-
"message": "layers[58].paint.color-relief-color: zoom functions not supported",
220-
"line": 1003
215+
"message": "layers[57].paint.color-relief-color: zoom functions not supported",
216+
"line": 994
221217
}
222218
]

0 commit comments

Comments
 (0)