File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,6 @@ describe('Platform Service Tests', () => {
447447
448448 const projectData = testInjector . resolve ( "projectData" ) ;
449449 projectData . projectDir = testDirData . tempFolder ;
450- projectData . appDirectoryPath = testDirData . appFolderPath ;
451450 projectData . projectName = "app" ;
452451
453452 platformService = testInjector . resolve ( "platformService" ) ;
Original file line number Diff line number Diff line change @@ -253,7 +253,9 @@ export class ProjectDataStub implements IProjectData {
253253 projectFilePath : string ;
254254 projectId : string ;
255255 dependencies : any ;
256- appDirectoryPath : string ;
256+ get appDirectoryPath ( ) : string {
257+ return this . getAppDirectoryPath ( ) ;
258+ }
257259 devDependencies : IStringDictionary ;
258260 projectType : string ;
259261 get appResourcesDirectoryPath ( ) : string {
@@ -282,6 +284,13 @@ export class ProjectDataStub implements IProjectData {
282284
283285 return absoluteAppResourcesDirPath || path . join ( projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME ) ;
284286 }
287+ public getAppDirectoryPath ( projectDir ?: string ) : string {
288+ if ( ! projectDir ) {
289+ projectDir = this . projectDir ;
290+ }
291+
292+ return path . join ( projectDir , "app" ) || "" ;
293+ }
285294}
286295
287296export class PlatformProjectServiceStub extends EventEmitter implements IPlatformProjectService {
You can’t perform that action at this time.
0 commit comments