File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/test/groovy/au/org/ala/ecodata/paratoo Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,7 @@ class ParatooProtocolConfigSpec extends Specification {
116
116
usesPlotLayout :false ,
117
117
geometryType : ' Point' ,
118
118
startDatePath : ' attributes.startdate' ,
119
- endDatePath : ' attributes.updatedAt' ,
120
- observationSurveyIdPath : ' attributes.opportunistic_survey.data.attributes.survey_metadata'
119
+ endDatePath : ' attributes.updatedAt'
121
120
]
122
121
ParatooProtocolConfig config = new ParatooProtocolConfig (opportunisticSurveyConfig)
123
122
ParatooCollectionId paratooSurveyId = new ParatooCollectionId (
@@ -129,12 +128,12 @@ class ParatooProtocolConfigSpec extends Specification {
129
128
]
130
129
]
131
130
)
132
- def start_date = config. getStartDate(surveyObservations)
133
- def end_date = config. getEndDate(surveyObservations)
131
+ def start_date = config. getStartDate(surveyObservations. data[ 0 ] )
132
+ def end_date = config. getEndDate(surveyObservations. data[ 0 ] )
134
133
135
134
expect :
136
- start_date ! = null
137
- end_date != null
135
+ start_date = = null
136
+ end_date == " 2023-10-24T01:01:56Z "
138
137
139
138
}
140
139
}
You can’t perform that action at this time.
0 commit comments