@@ -24,7 +24,7 @@ describe('react:ios', function() {
2424
2525 runs ( function ( ) {
2626 helpers . run ( path . resolve ( __dirname , '../generator-ios' ) )
27- . withArguments ( [ 'TestApp ' ] )
27+ . withArguments ( [ 'TestAppIOS ' ] )
2828 . on ( 'end' , function ( ) {
2929 generated = true ;
3030 } ) ;
@@ -40,58 +40,58 @@ describe('react:ios', function() {
4040 it ( 'creates files' , function ( ) {
4141 assert . file ( [
4242 'ios/main.jsbundle' ,
43- 'ios/TestApp /AppDelegate.h' ,
44- 'ios/TestApp /AppDelegate.m' ,
45- 'ios/TestApp /Base.lproj/LaunchScreen.xib' ,
46- 'ios/TestApp /Images.xcassets/AppIcon.appiconset/Contents.json' ,
47- 'ios/TestApp /Info.plist' ,
48- 'ios/TestApp /main.m' ,
49- 'ios/TestApp .xcodeproj/project.pbxproj' ,
50- 'ios/TestApp .xcodeproj/xcshareddata/xcschemes/TestApp .xcscheme' ,
51- 'ios/TestAppTests/TestAppTests .m' ,
52- 'ios/TestAppTests /Info.plist'
43+ 'ios/TestAppIOS /AppDelegate.h' ,
44+ 'ios/TestAppIOS /AppDelegate.m' ,
45+ 'ios/TestAppIOS /Base.lproj/LaunchScreen.xib' ,
46+ 'ios/TestAppIOS /Images.xcassets/AppIcon.appiconset/Contents.json' ,
47+ 'ios/TestAppIOS /Info.plist' ,
48+ 'ios/TestAppIOS /main.m' ,
49+ 'ios/TestAppIOS .xcodeproj/project.pbxproj' ,
50+ 'ios/TestAppIOS .xcodeproj/xcshareddata/xcschemes/TestAppIOS .xcscheme' ,
51+ 'ios/TestAppIOSTests/TestAppIOSTests .m' ,
52+ 'ios/TestAppIOSTests /Info.plist'
5353 ] ) ;
5454 } ) ;
5555
5656 it ( 'replaces vars in AppDelegate.m' , function ( ) {
57- var appDelegate = 'ios/TestApp /AppDelegate.m' ;
57+ var appDelegate = 'ios/TestAppIOS /AppDelegate.m' ;
5858
59- assert . fileContent ( appDelegate , 'moduleName:@"TestApp "' ) ;
59+ assert . fileContent ( appDelegate , 'moduleName:@"TestAppIOS "' ) ;
6060 assert . noFileContent ( appDelegate , 'SampleApp' ) ;
6161 } ) ;
6262
6363 it ( 'replaces vars in LaunchScreen.xib' , function ( ) {
64- var launchScreen = 'ios/TestApp /Base.lproj/LaunchScreen.xib' ;
64+ var launchScreen = 'ios/TestAppIOS /Base.lproj/LaunchScreen.xib' ;
6565
66- assert . fileContent ( launchScreen , 'text="TestApp "' ) ;
66+ assert . fileContent ( launchScreen , 'text="TestAppIOS "' ) ;
6767 assert . noFileContent ( launchScreen , 'SampleApp' ) ;
6868 } ) ;
6969
70- it ( 'replaces vars in TestAppTests .m' , function ( ) {
71- var tests = 'ios/TestAppTests/TestAppTests .m' ;
70+ it ( 'replaces vars in TestAppIOSTests .m' , function ( ) {
71+ var tests = 'ios/TestAppIOSTests/TestAppIOSTests .m' ;
7272
73- assert . fileContent ( tests , '@interface TestAppTests : XCTestCase' ) ;
74- assert . fileContent ( tests , '@implementation TestAppTests ' ) ;
73+ assert . fileContent ( tests , '@interface TestAppIOSTests : XCTestCase' ) ;
74+ assert . fileContent ( tests , '@implementation TestAppIOSTests ' ) ;
7575 assert . noFileContent ( tests , 'SampleApp' ) ;
7676 } ) ;
7777
7878 it ( 'replaces vars in project.pbxproj' , function ( ) {
79- var pbxproj = 'ios/TestApp .xcodeproj/project.pbxproj' ;
80- assert . fileContent ( pbxproj , '"TestApp "' ) ;
81- assert . fileContent ( pbxproj , '"TestAppTests "' ) ;
82- assert . fileContent ( pbxproj , 'TestApp .app' ) ;
83- assert . fileContent ( pbxproj , 'TestAppTests .xctest' ) ;
79+ var pbxproj = 'ios/TestAppIOS .xcodeproj/project.pbxproj' ;
80+ assert . fileContent ( pbxproj , '"TestAppIOS "' ) ;
81+ assert . fileContent ( pbxproj , '"TestAppIOSTests "' ) ;
82+ assert . fileContent ( pbxproj , 'TestAppIOS .app' ) ;
83+ assert . fileContent ( pbxproj , 'TestAppIOSTests .xctest' ) ;
8484
8585 assert . noFileContent ( pbxproj , 'SampleApp' ) ;
8686 } ) ;
8787
8888 it ( 'replaces vars in xcscheme' , function ( ) {
89- var xcscheme = 'ios/TestApp .xcodeproj/xcshareddata/xcschemes/TestApp .xcscheme' ;
90- assert . fileContent ( xcscheme , '"TestApp "' ) ;
91- assert . fileContent ( xcscheme , '"TestApp .app"' ) ;
92- assert . fileContent ( xcscheme , 'TestApp .xcodeproj' ) ;
93- assert . fileContent ( xcscheme , '"TestAppTests .xctest"' ) ;
94- assert . fileContent ( xcscheme , '"TestAppTests "' ) ;
89+ var xcscheme = 'ios/TestAppIOS .xcodeproj/xcshareddata/xcschemes/TestAppIOS .xcscheme' ;
90+ assert . fileContent ( xcscheme , '"TestAppIOS "' ) ;
91+ assert . fileContent ( xcscheme , '"TestAppIOS .app"' ) ;
92+ assert . fileContent ( xcscheme , 'TestAppIOS .xcodeproj' ) ;
93+ assert . fileContent ( xcscheme , '"TestAppIOSTests .xctest"' ) ;
94+ assert . fileContent ( xcscheme , '"TestAppIOSTests "' ) ;
9595
9696 assert . noFileContent ( xcscheme , 'SampleApp' ) ;
9797 } ) ;
0 commit comments