@@ -1215,15 +1215,15 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
1215
1215
ParatooProtocolConfig config = new ParatooProtocolConfig (geometryType : " LineString" )
1216
1216
1217
1217
when :
1218
- def result = service. recursivelyTransformData(dataModel, output, formName, config)
1218
+ def result = service. recursivelyTransformData(dataModel, output, formName, 1 , config)
1219
1219
1220
1220
then :
1221
1221
result == [
1222
1222
line : [
1223
1223
type : " Feature" ,
1224
1224
geometry : [
1225
1225
type : " LineString" ,
1226
- coordinates : [[1 , 2 ], [3 , 4 ]]
1226
+ coordinates : [[2 , 1 ], [4 , 3 ]]
1227
1227
],
1228
1228
properties : [
1229
1229
name : " LineString form name-1" ,
@@ -1239,15 +1239,15 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
1239
1239
line : [[lat : 1 , lng : 2 ], [lat : 3 , lng : 4 ]]
1240
1240
]
1241
1241
config = new ParatooProtocolConfig (geometryType : " Polygon" )
1242
- result = service. recursivelyTransformData(dataModel, output, formName, config)
1242
+ result = service. recursivelyTransformData(dataModel, output, formName, 1 , config)
1243
1243
1244
1244
then :
1245
1245
result == [
1246
1246
line : [
1247
1247
type : " Feature" ,
1248
1248
geometry : [
1249
1249
type : " Polygon" ,
1250
- coordinates : [[1 , 2 ], [3 , 4 ], [1 , 2 ]]
1250
+ coordinates : [[[ 2 , 1 ], [4 , 3 ], [2 , 1 ] ]]
1251
1251
],
1252
1252
properties : [
1253
1253
name : " Polygon form name-1" ,
0 commit comments