File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,6 @@ export class OFS {
7878 const urlSearchParams = new URLSearchParams ( params ) ;
7979 theURL . search = urlSearchParams . toString ( ) ;
8080 }
81- console . log ( theURL . toString ( ) ) ;
82- console . log ( params ) ;
83- console . log ( theURL . search ) ;
8481 var myHeaders = new Headers ( ) ;
8582 myHeaders . append ( "Authorization" , this . authorization ) ;
8683 extraHeaders . forEach ( ( value , key ) => {
Original file line number Diff line number Diff line change @@ -283,12 +283,14 @@ test("Get Activities", async () => {
283283 {
284284 resources : "SUNRISE" ,
285285 dateFrom : "2025-02-01" ,
286- dateTo : "2025-04 -02" ,
286+ dateTo : "2025-03 -02" ,
287287 } ,
288288 0 ,
289289 100
290290 ) ;
291- console . log ( result ) ;
291+ if ( result . status !== 200 ) {
292+ console . log ( result ) ;
293+ }
292294 expect ( result . status ) . toBe ( 200 ) ;
293295 expect ( result . data . items . length ) . toBeGreaterThan ( 0 ) ;
294296 expect ( result . data . items [ 0 ] . activityId ) . toBeGreaterThan ( 0 ) ;
@@ -299,13 +301,15 @@ test("Get Activities with includeChildren", async () => {
299301 {
300302 resources : "SUNRISE" ,
301303 dateFrom : "2025-02-01" ,
302- dateTo : "2025-04 -02" ,
304+ dateTo : "2025-03 -02" ,
303305 includeChildren : "all" ,
304306 } ,
305307 0 ,
306308 100
307309 ) ;
308- console . log ( result ) ;
310+ if ( result . status !== 200 ) {
311+ console . log ( result ) ;
312+ }
309313 expect ( result . status ) . toBe ( 200 ) ;
310314 expect ( result . data . items . length ) . toBeGreaterThan ( 0 ) ;
311315 expect ( result . data . items [ 0 ] . activityId ) . toBeGreaterThan ( 0 ) ;
@@ -316,14 +320,16 @@ test("Get Activities with all the parameters", async () => {
316320 {
317321 resources : "SUNRISE" ,
318322 dateFrom : "2025-02-01" ,
319- dateTo : "2025-04 -02" ,
323+ dateTo : "2025-03 -02" ,
320324 includeChildren : "all" ,
321325 includeNonScheduled : true ,
322326 } ,
323327 0 ,
324328 100
325329 ) ;
326- console . log ( result ) ;
330+ if ( result . status !== 200 ) {
331+ console . log ( result ) ;
332+ }
327333 expect ( result . status ) . toBe ( 200 ) ;
328334 expect ( result . data . items . length ) . toBeGreaterThan ( 0 ) ;
329335 expect ( result . data . items [ 0 ] . activityId ) . toBeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments