Skip to content

Commit 20f4b26

Browse files
committed
Reorder declarations.
1 parent a2dfd7d commit 20f4b26

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/project-service.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,20 @@ describe("Project Service Tests", () => {
161161

162162
let testDirectoryPath = "/tmp/Podfile";
163163
let testInjector = createInjectorForPodsTest();
164-
165164
let iOSProjectService: IPlatformProjectService = testInjector.resolve("iOSProjectService");
166165
let fs: IFileSystem = testInjector.resolve("fs");
167166
let projectIntegrationTest = new ProjectIntegrationTest();
168167
let workingFolderPath = temp.mkdirSync("ios_project");
169-
170168
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-
174169
let postInstallCommmand = `\`cat ${testDirectoryPath}/testFile.txt > ${workingFolderPath}/copyTestFile.txt && rm -rf ${testDirectoryPath}\``;
175170
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();
176176
fs.writeFile(path.join(workingFolderPath, "Podfile"), podfileContent).wait();
177177

178-
let platformData = iOSProjectService.platformData;
179178
Object.defineProperty(iOSProjectService, "platformData", {
180179
get: () => {
181180
return { projectRoot: workingFolderPath };

0 commit comments

Comments
 (0)