@@ -104,7 +104,7 @@ describe('ProjectService', () => {
104104 it ( 'update project using PUT from url locally' , ( ) => {
105105 const project : Project = { id : '1' , name : 'new name' , description : 'description' , project_type_id : '123' , status : 'active' } ;
106106 service . url = 'projects' ;
107- service . isDevelopment = true ;
107+ service . isDevelopmentOrProd = true ;
108108 service . updateProject ( project ) . subscribe ( ( response ) => {
109109 expect ( response . name ) . toBe ( 'new name' ) ;
110110 } ) ;
@@ -115,7 +115,7 @@ describe('ProjectService', () => {
115115
116116 it ( 'delete project using DELETE from baseUrl' , ( ) => {
117117 const url = `${ service . url } /1` ;
118- service . isDevelopment = false ;
118+ service . isDevelopmentOrProd = false ;
119119 service . deleteProject ( projectsList [ 0 ] . id ) . subscribe ( ( projectsInResponse ) => {
120120 expect ( projectsInResponse . filter ( ( project ) => project . id !== projectsList [ 0 ] . id ) . length ) . toEqual ( 2 ) ;
121121 } ) ;
@@ -126,7 +126,7 @@ describe('ProjectService', () => {
126126
127127 it ( 'update status project using PUT from baseUrl locally' , ( ) => {
128128 const url = `${ service . url } /1` ;
129- service . isDevelopment = true ;
129+ service . isDevelopmentOrProd = true ;
130130 service . deleteProject ( projectsList [ 0 ] . id ) . subscribe ( ( projectsInResponse ) => {
131131 expect ( projectsInResponse . filter ( ( project ) => project . id !== projectsList [ 0 ] . id ) . length ) . toEqual ( 2 ) ;
132132 } ) ;
0 commit comments