File tree 2 files changed +10
-2
lines changed 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', () => {
447
447
448
448
const projectData = testInjector . resolve ( "projectData" ) ;
449
449
projectData . projectDir = testDirData . tempFolder ;
450
- projectData . appDirectoryPath = testDirData . appFolderPath ;
451
450
projectData . projectName = "app" ;
452
451
453
452
platformService = testInjector . resolve ( "platformService" ) ;
Original file line number Diff line number Diff line change @@ -253,7 +253,9 @@ export class ProjectDataStub implements IProjectData {
253
253
projectFilePath : string ;
254
254
projectId : string ;
255
255
dependencies : any ;
256
- appDirectoryPath : string ;
256
+ get appDirectoryPath ( ) : string {
257
+ return this . getAppDirectoryPath ( ) ;
258
+ }
257
259
devDependencies : IStringDictionary ;
258
260
projectType : string ;
259
261
get appResourcesDirectoryPath ( ) : string {
@@ -282,6 +284,13 @@ export class ProjectDataStub implements IProjectData {
282
284
283
285
return absoluteAppResourcesDirPath || path . join ( projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME ) ;
284
286
}
287
+ public getAppDirectoryPath ( projectDir ?: string ) : string {
288
+ if ( ! projectDir ) {
289
+ projectDir = this . projectDir ;
290
+ }
291
+
292
+ return path . join ( projectDir , "app" ) || "" ;
293
+ }
285
294
}
286
295
287
296
export class PlatformProjectServiceStub extends EventEmitter implements IPlatformProjectService {
You can’t perform that action at this time.
0 commit comments