@@ -24,7 +24,7 @@ describe("Congestion Insights", () => {
2424 const expirationDate = new Date ( Date . now ( ) + 5 * 60 * 1000 ) ;
2525 expirationDate . setMilliseconds ( 0 ) ;
2626
27- it . skip ( "can create subscription for congestion insights" , async ( ) => {
27+ it ( "can create subscription for congestion insights" , async ( ) => {
2828 const notificationId : string = uuid ( ) ;
2929 const subscription = await client . insights . subscribeToCongestionInfo (
3030 device ,
@@ -36,9 +36,9 @@ describe("Congestion Insights", () => {
3636 expect ( subscription . expiresAt ) . toEqual (
3737 new Date ( expirationDate . toISOString ( ) . replace ( ".000" , "" ) )
3838 ) ;
39-
39+ // Fetching the subscription notification
4040 await new Promise ( resolve => setTimeout ( resolve , 5 * 1000 ) ) ;
41- let notification = await fetch ( `${ notificationUrl } /congestion-insights/get/ ${ notificationId } ` ,
41+ let notification = await fetch ( `${ notificationUrl } /congestion-insights/${ notificationId } ` ,
4242 {
4343 method : "GET" ,
4444 agent : agent
@@ -49,7 +49,8 @@ describe("Congestion Insights", () => {
4949
5050 expect ( data ) . not . toBeNull ( ) ;
5151
52- notification = await fetch ( `${ notificationUrl } /congestion-insights/delete/${ notificationId } ` ,
52+ // Deleting the subscription notification
53+ notification = await fetch ( `${ notificationUrl } /congestion-insights/${ notificationId } ` ,
5354 {
5455 method : 'DELETE' ,
5556 agent : agent
@@ -62,7 +63,7 @@ describe("Congestion Insights", () => {
6263
6364 } , 20 * 1000 ) ;
6465
65- it . skip ( "can create subscription for congestion insights without auth token" , async ( ) => {
66+ it ( "can create subscription for congestion insights without auth token" , async ( ) => {
6667 const notificationId : string = uuid ( ) ;
6768 const subscription = await client . insights . subscribeToCongestionInfo (
6869 device ,
@@ -74,9 +75,9 @@ describe("Congestion Insights", () => {
7475 new Date ( expirationDate . toISOString ( ) . replace ( ".000" , "" ) )
7576 ) ;
7677
77-
78+ // Fetching the subscription notification
7879 await new Promise ( resolve => setTimeout ( resolve , 5 * 1000 ) ) ;
79- let notification = await fetch ( `${ notificationUrl } /congestion-insights/get/ ${ notificationId } ` ,
80+ let notification = await fetch ( `${ notificationUrl } /congestion-insights/${ notificationId } ` ,
8081 {
8182 method : "GET" ,
8283 agent : agent
@@ -87,7 +88,8 @@ describe("Congestion Insights", () => {
8788
8889 expect ( data ) . not . toBeNull ( ) ;
8990
90- notification = await fetch ( `${ notificationUrl } /congestion-insights/delete/${ notificationId } ` ,
91+ // Deleting the subscription notification
92+ notification = await fetch ( `${ notificationUrl } /congestion-insights/${ notificationId } ` ,
9193 {
9294 method : 'DELETE' ,
9395 agent : agent
@@ -100,7 +102,7 @@ describe("Congestion Insights", () => {
100102
101103 } , 20 * 1000 ) ;
102104
103- it . skip ( "can get a subscription by id" , async ( ) => {
105+ it ( "can get a subscription by id" , async ( ) => {
104106 const subscription = await client . insights . subscribeToCongestionInfo (
105107 device ,
106108 expirationDate ,
@@ -118,7 +120,7 @@ describe("Congestion Insights", () => {
118120 await subscription . delete ( ) ;
119121 } ) ;
120122
121- it . skip ( "can get subscription start and expiration" , async ( ) => {
123+ it ( "can get subscription start and expiration" , async ( ) => {
122124 const subscription = await client . insights . subscribeToCongestionInfo (
123125 device ,
124126 expirationDate ,
@@ -133,7 +135,7 @@ describe("Congestion Insights", () => {
133135 await subscription . delete ( ) ;
134136 } ) ;
135137
136- it . skip ( "can get start and expiration from selected subscription" , async ( ) => {
138+ it ( "can get start and expiration from selected subscription" , async ( ) => {
137139 const subscription = await client . insights . subscribeToCongestionInfo (
138140 device ,
139141 expirationDate ,
@@ -155,7 +157,7 @@ describe("Congestion Insights", () => {
155157 await subscription . delete ( ) ;
156158 } ) ;
157159
158- it . skip ( "can get a list of subscriptions" , async ( ) => {
160+ it ( "can get a list of subscriptions" , async ( ) => {
159161 const subscription = await client . insights . subscribeToCongestionInfo (
160162 device ,
161163 expirationDate ,
@@ -176,7 +178,7 @@ describe("Congestion Insights", () => {
176178 await subscription . delete ( ) ;
177179 } ) ;
178180
179- it . skip ( "should fetch current congestion level relevant to a given device" , async ( ) => {
181+ it ( "should fetch current congestion level relevant to a given device" , async ( ) => {
180182 const subscription = await client . insights . subscribeToCongestionInfo (
181183 device ,
182184 expirationDate ,
@@ -203,7 +205,7 @@ describe("Congestion Insights", () => {
203205 await subscription . delete ( ) ;
204206 } ) ;
205207
206- it . skip ( "should fetch prediction/historical data between two time stamps:" , async ( ) => {
208+ it ( "should fetch prediction/historical data between two time stamps:" , async ( ) => {
207209 const subscription = await client . insights . subscribeToCongestionInfo (
208210 device ,
209211 expirationDate ,
0 commit comments