@@ -161,21 +161,20 @@ describe("Project Service Tests", () => {
161
161
162
162
let testDirectoryPath = "/tmp/Podfile" ;
163
163
let testInjector = createInjectorForPodsTest ( ) ;
164
-
165
164
let iOSProjectService : IPlatformProjectService = testInjector . resolve ( "iOSProjectService" ) ;
166
165
let fs : IFileSystem = testInjector . resolve ( "fs" ) ;
167
166
let projectIntegrationTest = new ProjectIntegrationTest ( ) ;
168
167
let workingFolderPath = temp . mkdirSync ( "ios_project" ) ;
169
-
170
168
let iosTemplatePath = path . join ( projectIntegrationTest . getNpmPackagePath ( "tns-ios" ) . wait ( ) , "framework/" ) ;
171
- shell . cp ( "-R" , iosTemplatePath , workingFolderPath ) ;
172
- fs . writeFile ( `${ testDirectoryPath } /testFile.txt` , "Test content." ) . wait ( ) ;
173
-
174
169
let postInstallCommmand = `\`cat ${ testDirectoryPath } /testFile.txt > ${ workingFolderPath } /copyTestFile.txt && rm -rf ${ testDirectoryPath } \`` ;
175
170
let podfileContent = `post_install do |installer_representation| ${ postInstallCommmand } end` ;
171
+ let platformData = iOSProjectService . platformData ;
172
+
173
+ shell . cp ( "-R" , iosTemplatePath , workingFolderPath ) ;
174
+
175
+ fs . writeFile ( `${ testDirectoryPath } /testFile.txt` , "Test content." ) . wait ( ) ;
176
176
fs . writeFile ( path . join ( workingFolderPath , "Podfile" ) , podfileContent ) . wait ( ) ;
177
177
178
- let platformData = iOSProjectService . platformData ;
179
178
Object . defineProperty ( iOSProjectService , "platformData" , {
180
179
get : ( ) => {
181
180
return { projectRoot : workingFolderPath } ;
0 commit comments