Skip to content

Commit 1beb3b2

Browse files
committedApr 17, 2024
1 parent 3dcb1ba commit 1beb3b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/test/groovy/au/org/ala/ecodata/ParatooServiceSpec.groovy

+4-4
Original file line numberDiff line numberDiff line change
@@ -1215,15 +1215,15 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
12151215
ParatooProtocolConfig config = new ParatooProtocolConfig(geometryType: "LineString")
12161216

12171217
when:
1218-
def result = service.recursivelyTransformData(dataModel, output, formName, config)
1218+
def result = service.recursivelyTransformData(dataModel, output, formName, 1, config)
12191219

12201220
then:
12211221
result == [
12221222
line: [
12231223
type: "Feature",
12241224
geometry: [
12251225
type: "LineString",
1226-
coordinates: [[1, 2], [3, 4]]
1226+
coordinates: [[2, 1], [4, 3]]
12271227
],
12281228
properties: [
12291229
name: "LineString form name-1",
@@ -1239,15 +1239,15 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
12391239
line: [[lat: 1, lng: 2], [lat: 3, lng: 4]]
12401240
]
12411241
config = new ParatooProtocolConfig(geometryType: "Polygon")
1242-
result = service.recursivelyTransformData(dataModel, output, formName, config)
1242+
result = service.recursivelyTransformData(dataModel, output, formName, 1, config)
12431243

12441244
then:
12451245
result == [
12461246
line: [
12471247
type: "Feature",
12481248
geometry: [
12491249
type: "Polygon",
1250-
coordinates: [[1, 2], [3, 4], [1, 2]]
1250+
coordinates: [[[2, 1], [4, 3], [2, 1]]]
12511251
],
12521252
properties: [
12531253
name: "Polygon form name-1",

0 commit comments

Comments
 (0)