@@ -148,7 +148,7 @@ const OBSERVATIONS_PAGE_2 = {
148148 links : [ ] ,
149149} ;
150150
151- /** DataStream schema response (SWE Common DataRecord). */
151+ /** Datastream schema response (SWE Common DataRecord). */
152152const DATASTREAM_SCHEMA = {
153153 type : 'DataRecord' ,
154154 label : 'Temperature Observation' ,
@@ -172,7 +172,7 @@ const DATASTREAM_SCHEMA = {
172172} ;
173173
174174// ========================================
175- // System → DataStream Discovery
175+ // System → Datastream Discovery
176176// ========================================
177177
178178describe ( 'Observation workflow — system to datastream discovery' , ( ) => {
@@ -188,7 +188,7 @@ describe('Observation workflow — system to datastream discovery', () => {
188188 } ) ;
189189
190190 it ( 'builds nested datastream URL for a discovered system' , ( ) => {
191- const url = builder . getSystemDataStreams ( 'sys-001' ) ;
191+ const url = builder . getSystemDatastreams ( 'sys-001' ) ;
192192 expect ( url ) . toBe (
193193 'https://api.example.com/collections/iot/systems/sys-001/datastreams'
194194 ) ;
@@ -213,7 +213,7 @@ describe('Observation workflow — temporal query parameters', () => {
213213 const builder = new CSAPIQueryBuilder ( makeCollection ( ) ) ;
214214
215215 it ( 'builds observation URL with phenomenonTime filter' , ( ) => {
216- const url = builder . getDataStreamObservations ( 'ds-temp' , {
216+ const url = builder . getDatastreamObservations ( 'ds-temp' , {
217217 phenomenonTime : {
218218 start : new Date ( '2024-06-15T00:00:00Z' ) ,
219219 end : new Date ( '2024-06-15T23:59:59Z' ) ,
@@ -225,14 +225,14 @@ describe('Observation workflow — temporal query parameters', () => {
225225 } ) ;
226226
227227 it ( 'builds observation URL with resultTime=latest' , ( ) => {
228- const url = builder . getDataStreamObservations ( 'ds-temp' , {
228+ const url = builder . getDatastreamObservations ( 'ds-temp' , {
229229 resultTime : 'latest' ,
230230 } ) ;
231231 expect ( url ) . toContain ( 'resultTime=latest' ) ;
232232 } ) ;
233233
234234 it ( 'builds observation URL with limit and offset pagination' , ( ) => {
235- const url = builder . getDataStreamObservations ( 'ds-temp' , {
235+ const url = builder . getDatastreamObservations ( 'ds-temp' , {
236236 limit : 100 ,
237237 offset : 200 ,
238238 } ) ;
@@ -287,7 +287,7 @@ describe('Observation workflow — cursor-based pagination', () => {
287287 const builder = new CSAPIQueryBuilder ( makeCollection ( ) ) ;
288288
289289 it ( 'builds URL with cursor token' , ( ) => {
290- const url = builder . getDataStreamObservations ( 'ds-temp' , {
290+ const url = builder . getDatastreamObservations ( 'ds-temp' , {
291291 cursor : 'abc123xyz' ,
292292 limit : 50 ,
293293 } ) ;
@@ -304,7 +304,7 @@ describe('Observation workflow — schema and SWE Common parsing', () => {
304304 const builder = new CSAPIQueryBuilder ( makeCollection ( ) ) ;
305305
306306 it ( 'builds datastream schema URL' , ( ) => {
307- const url = builder . getDataStreamSchema ( 'ds-temp' , {
307+ const url = builder . getDatastreamSchema ( 'ds-temp' , {
308308 f : 'application/swe+json' ,
309309 } ) ;
310310 expect ( url ) . toContain ( '/datastreams/ds-temp/schema' ) ;
@@ -376,11 +376,11 @@ describe('Observation workflow — error handling', () => {
376376 } ) ;
377377 const builder = new CSAPIQueryBuilder ( noDs ) ;
378378
379- expect ( ( ) => builder . getDataStreams ( ) ) . toThrow (
379+ expect ( ( ) => builder . getDatastreams ( ) ) . toThrow (
380380 / d o e s n o t s u p p o r t ' d a t a s t r e a m s ' /
381381 ) ;
382382 // Per-ID methods skip assertResourceAvailable (Phase 7 #156/#157)
383- expect ( builder . getDataStreamObservations ( 'ds-001' ) ) . toEqual (
383+ expect ( builder . getDatastreamObservations ( 'ds-001' ) ) . toEqual (
384384 expect . any ( String )
385385 ) ;
386386 } ) ;
0 commit comments