@@ -41,7 +41,9 @@ const createTestInjector = (): IInjector => {
4141 testInjector . register ( "androidPluginBuildService" , { } ) ;
4242 testInjector . register ( "errors" , stubs . ErrorsStub ) ;
4343 testInjector . register ( "logger" , stubs . LoggerStub ) ;
44- testInjector . register ( "options" , { } ) ;
44+ testInjector . register ( "options" , {
45+ hostProjectModuleName : "app" ,
46+ } ) ;
4547 testInjector . register ( "projectData" , stubs . ProjectDataStub ) ;
4648 testInjector . register ( "androidToolsInfo" , {
4749 getToolsInfo : ( ) => {
@@ -240,9 +242,8 @@ describe("androidProjectService", () => {
240242
241243 compileSdkVersion = 29 ;
242244
243- const androidToolsInfo = injector . resolve < IAndroidToolsInfo > (
244- "androidToolsInfo"
245- ) ;
245+ const androidToolsInfo =
246+ injector . resolve < IAndroidToolsInfo > ( "androidToolsInfo" ) ;
246247 androidToolsInfo . getToolsInfo = (
247248 config ?: IProjectDir
248249 ) : IAndroidToolsInfoData => {
@@ -258,9 +259,10 @@ describe("androidProjectService", () => {
258259 "src"
259260 ) ;
260261 beforeEach ( ( ) => {
261- const androidResourcesMigrationService = injector . resolve <
262- IAndroidResourcesMigrationService
263- > ( "androidResourcesMigrationService" ) ;
262+ const androidResourcesMigrationService =
263+ injector . resolve < IAndroidResourcesMigrationService > (
264+ "androidResourcesMigrationService"
265+ ) ;
264266 androidResourcesMigrationService . hasMigrated = ( ) => true ;
265267 } ) ;
266268
@@ -329,9 +331,10 @@ describe("androidProjectService", () => {
329331
330332 describe ( "when old Android App_Resources structure is detected (post {N} 4.0 structure)" , ( ) => {
331333 beforeEach ( ( ) => {
332- const androidResourcesMigrationService = injector . resolve <
333- IAndroidResourcesMigrationService
334- > ( "androidResourcesMigrationService" ) ;
334+ const androidResourcesMigrationService =
335+ injector . resolve < IAndroidResourcesMigrationService > (
336+ "androidResourcesMigrationService"
337+ ) ;
335338 androidResourcesMigrationService . hasMigrated = ( ) => false ;
336339 } ) ;
337340
0 commit comments