@@ -84,15 +84,15 @@ describe('EntryService', () => {
8484 } ) ;
8585
8686 it ( 'stops an entry using POST' , ( ) => {
87- service . urlInProduction = true ;
87+ service . urlInProductionLegacy = true ;
8888 service . stopEntryRunning ( 'id' ) . subscribe ( ) ;
8989
9090 const updateEntryRequest = httpMock . expectOne ( `${ service . baseUrl } /id/stop` ) ;
9191 expect ( updateEntryRequest . request . method ) . toBe ( 'POST' ) ;
9292 } ) ;
9393
9494 it ( 'stops an entry using PUT' , ( ) => {
95- service . urlInProduction = false ;
95+ service . urlInProductionLegacy = false ;
9696 service . stopEntryRunning ( 'id' ) . subscribe ( ) ;
9797
9898 const updateEntryRequest = httpMock . expectOne ( `${ service . baseUrl } /stop` ) ;
@@ -105,7 +105,7 @@ describe('EntryService', () => {
105105 const pipe : DatePipe = new DatePipe ( 'en' ) ;
106106 const timeRange : TimeEntriesTimeRange = { start_date : yesterday , end_date : today } ;
107107 const userId = '123' ;
108- const reportsUrl = service . urlInProduction ? service . baseUrl : service . baseUrl + '/report' ;
108+ const reportsUrl = service . urlInProductionLegacy ? service . baseUrl : service . baseUrl + '/report' ;
109109 service . loadEntriesByTimeRange ( timeRange , userId ) . subscribe ( ) ;
110110
111111 const loadEntryRequest = httpMock . expectOne ( req => req . method === 'GET' && req . url === reportsUrl ) ;
@@ -120,7 +120,7 @@ describe('EntryService', () => {
120120 const today = moment ( new Date ( ) ) ;
121121 const timeRange : TimeEntriesTimeRange = { start_date : yesterday , end_date : today } ;
122122 const userId = '123' ;
123- const reportsUrl = service . urlInProduction ? service . baseUrl : service . baseUrl + '/report' ;
123+ const reportsUrl = service . urlInProductionLegacy ? service . baseUrl : service . baseUrl + '/report' ;
124124 service . loadEntriesByTimeRange ( timeRange , userId ) . subscribe ( ) ;
125125
126126 const loadEntryRequest = httpMock . expectOne ( req => req . method === 'GET' && req . url === reportsUrl ) ;
@@ -132,7 +132,7 @@ describe('EntryService', () => {
132132 const today = moment ( new Date ( ) ) ;
133133 const timeRange : TimeEntriesTimeRange = { start_date : yesterday , end_date : today } ;
134134 const userId = '123' ;
135- const reportsUrl = service . urlInProduction ? service . baseUrl : service . baseUrl + '/report' ;
135+ const reportsUrl = service . urlInProductionLegacy ? service . baseUrl : service . baseUrl + '/report' ;
136136
137137 service . loadEntriesByTimeRange ( timeRange , userId ) . subscribe ( ) ;
138138
0 commit comments