Skip to content

Commit 36b9b2d

Browse files
committed
1 parent eeac1d9 commit 36b9b2d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/groovy/au/org/ala/ecodata/paratoo/ParatooProtocolConfigSpec.groovy

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ class ParatooProtocolConfigSpec extends Specification {
116116
usesPlotLayout:false,
117117
geometryType: 'Point',
118118
startDatePath: 'attributes.startdate',
119-
endDatePath: 'attributes.updatedAt',
120-
observationSurveyIdPath: 'attributes.opportunistic_survey.data.attributes.survey_metadata'
119+
endDatePath: 'attributes.updatedAt'
121120
]
122121
ParatooProtocolConfig config = new ParatooProtocolConfig(opportunisticSurveyConfig)
123122
ParatooCollectionId paratooSurveyId = new ParatooCollectionId(
@@ -129,12 +128,12 @@ class ParatooProtocolConfigSpec extends Specification {
129128
]
130129
]
131130
)
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])
134133

135134
expect:
136-
start_date != null
137-
end_date != null
135+
start_date == null
136+
end_date == "2023-10-24T01:01:56Z"
138137

139138
}
140139
}

0 commit comments

Comments
 (0)