@@ -303,7 +303,7 @@ describe("Cocoapods support", () => {
303
303
let pluginPath = temp . mkdirSync ( "pluginDirectory" ) ;
304
304
let pluginPlatformsFolderPath = path . join ( pluginPath , "platforms" , "ios" ) ;
305
305
let pluginPodfilePath = path . join ( pluginPlatformsFolderPath , "Podfile" ) ;
306
- let pluginPodfileContent = [ "source 'https://github.com/CocoaPods/Specs.git'" , "platform :ios, '8.1'" , "pod 'GoogleMaps'" ] . join ( "\n" ) ;
306
+ let pluginPodfileContent = [ "source 'https://github.com/CocoaPods/Specs.git'" , "platform :ios, '8.1'" , "pod 'GoogleMaps'" ] . join ( "\n" ) ;
307
307
fs . writeFile ( pluginPodfilePath , pluginPodfileContent ) . wait ( ) ;
308
308
309
309
let pluginData = {
@@ -373,7 +373,7 @@ describe("Cocoapods support", () => {
373
373
let pluginPath = temp . mkdirSync ( "pluginDirectory" ) ;
374
374
let pluginPlatformsFolderPath = path . join ( pluginPath , "platforms" , "ios" ) ;
375
375
let pluginPodfilePath = path . join ( pluginPlatformsFolderPath , "Podfile" ) ;
376
- let pluginPodfileContent = [ "source 'https://github.com/CocoaPods/Specs.git'" , "platform :ios, '8.1'" , "pod 'GoogleMaps'" ] . join ( "\n" ) ;
376
+ let pluginPodfileContent = [ "source 'https://github.com/CocoaPods/Specs.git'" , "platform :ios, '8.1'" , "pod 'GoogleMaps'" ] . join ( "\n" ) ;
377
377
fs . writeFile ( pluginPodfilePath , pluginPodfileContent ) . wait ( ) ;
378
378
379
379
let pluginData = {
@@ -417,7 +417,7 @@ describe("Static libraries support", () => {
417
417
let testInjector = createTestInjector ( projectPath , projectName ) ;
418
418
let fs : IFileSystem = testInjector . resolve ( "fs" ) ;
419
419
let staticLibraryPath = path . join ( path . join ( temp . mkdirSync ( "pluginDirectory" ) , "platforms" , "ios" ) ) ;
420
- let staticLibraryHeadersPath = path . join ( staticLibraryPath , "include" , libraryName ) ;
420
+ let staticLibraryHeadersPath = path . join ( staticLibraryPath , "include" , libraryName ) ;
421
421
422
422
it ( "checks validation of header files" , ( ) => {
423
423
let iOSProjectService = testInjector . resolve ( "iOSProjectService" ) ;
@@ -430,7 +430,7 @@ describe("Static libraries support", () => {
430
430
let error : any ;
431
431
try {
432
432
iOSProjectService . validateStaticLibrary ( path . join ( staticLibraryPath , libraryName + ".a" ) ) . wait ( ) ;
433
- } catch ( err ) {
433
+ } catch ( err ) {
434
434
error = err ;
435
435
}
436
436
@@ -457,7 +457,7 @@ describe("Static libraries support", () => {
457
457
let error : any ;
458
458
try {
459
459
modulemap = fs . readFile ( path . join ( staticLibraryHeadersPath , "module.modulemap" ) ) . wait ( ) ;
460
- } catch ( err ) {
460
+ } catch ( err ) {
461
461
error = err ;
462
462
}
463
463
@@ -466,16 +466,16 @@ describe("Static libraries support", () => {
466
466
} ) ;
467
467
468
468
describe ( "Relative paths" , ( ) => {
469
- it ( "checks for correct calculation of relative paths" , ( ) => {
470
- let projectName = "projectDirectory" ;
471
- let projectPath = temp . mkdirSync ( projectName ) ;
472
- let subpath = path . join ( projectPath , "sub/ path" ) ;
469
+ it ( "checks for correct calculation of relative paths" , ( ) => {
470
+ let projectName = "projectDirectory" ;
471
+ let projectPath = temp . mkdirSync ( projectName ) ;
472
+ let subpath = path . join ( projectPath , "sub" , " path") ;
473
473
474
- let testInjector = createTestInjector ( projectPath , projectName ) ;
475
- createPackageJson ( testInjector , projectPath , projectName ) ;
476
- let iOSProjectService = testInjector . resolve ( "iOSProjectService" ) ;
474
+ let testInjector = createTestInjector ( projectPath , projectName ) ;
475
+ createPackageJson ( testInjector , projectPath , projectName ) ;
476
+ let iOSProjectService = testInjector . resolve ( "iOSProjectService" ) ;
477
477
478
- let result = iOSProjectService . getLibSubpathRelativeToProjectPath ( subpath ) ;
479
- assert . equal ( result , "../../ sub/ path" ) ;
480
- } ) ;
478
+ let result = iOSProjectService . getLibSubpathRelativeToProjectPath ( subpath ) ;
479
+ assert . equal ( result , path . join ( ".." , ".." , " sub" , " path") ) ;
480
+ } ) ;
481
481
} ) ;
0 commit comments