@@ -32,7 +32,7 @@ exports.setUp = function (callback) {
3232exports . addRemovePbxGroup = {
3333 'should return a pbxGroup' : function ( test ) {
3434 var pbxGroup = proj . addPbxGroup ( [ 'file.m' ] , 'MyGroup' , 'Application' , 'Application' , '"<group>"' ) ;
35-
35+
3636 test . ok ( typeof pbxGroup === 'object' ) ;
3737 test . done ( )
3838 } ,
@@ -48,7 +48,7 @@ exports.addRemovePbxGroup = {
4848 var file = pbxGroup . pbxGroup . children [ index ] ;
4949 test . ok ( file . value ) ;
5050 }
51-
51+
5252 test . done ( )
5353 } ,
5454 'should add the PBXGroup object correctly' : function ( test ) {
@@ -74,7 +74,7 @@ exports.addRemovePbxGroup = {
7474 test . notEqual ( buildFileSection [ key ] . fileRef_comment , 'file.m' ) ;
7575 test . notEqual ( buildFileSection [ key ] . fileRef_comment , 'assets.bundle' ) ;
7676 }
77-
77+
7878 var initialBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ,
7979 pbxGroup = proj . addPbxGroup ( [ 'file.m' , 'assets.bundle' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
8080 afterAdditionBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ;
@@ -88,7 +88,7 @@ exports.addRemovePbxGroup = {
8888 initialBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ,
8989 pbxGroup = proj . addPbxGroup ( [ 'AppDelegate.m' , 'AppDelegate.h' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
9090 afterAdditionBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ;
91-
91+
9292 test . deepEqual ( initialBuildFileSectionItemsCount , afterAdditionBuildFileSectionItemsCount ) ;
9393 test . done ( ) ;
9494 } ,
@@ -97,7 +97,7 @@ exports.addRemovePbxGroup = {
9797 initialBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ,
9898 pbxGroup = proj . addPbxGroup ( [ 'KitchenSinktablet.app' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
9999 afterAdditionBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ;
100-
100+
101101 test . deepEqual ( initialBuildFileSectionItemsCount , afterAdditionBuildFileSectionItemsCount ) ;
102102 test . done ( ) ;
103103 } ,
@@ -107,11 +107,11 @@ exports.addRemovePbxGroup = {
107107 test . notEqual ( buildFileSection [ key ] . fileRef_comment , 'file.m' ) ;
108108 test . notEqual ( buildFileSection [ key ] . fileRef_comment , 'assets.bundle' ) ;
109109 }
110-
110+
111111 var initialBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ,
112112 pbxGroup = proj . addPbxGroup ( [ 'AppDelegate.m' , 'AppDelegate.h' , 'file.m' , 'assets.bundle' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
113113 afterAdditionBuildFileSectionItemsCount = Object . keys ( buildFileSection ) ;
114-
114+
115115 // for each file added in the build file section two keyes are added - one for the object and one for the comment
116116 test . equal ( initialBuildFileSectionItemsCount . length , afterAdditionBuildFileSectionItemsCount . length - 4 ) ;
117117 test . done ( ) ;
@@ -126,7 +126,7 @@ exports.addRemovePbxGroup = {
126126 for ( var index = 0 ; index < pbxGroup . pbxGroup . children . length ; index ++ ) {
127127 var file = pbxGroup . pbxGroup . children [ index ] ;
128128 test . ok ( fileReference [ file . value ] ) ;
129- }
129+ }
130130
131131 test . done ( ) ;
132132 } ,
@@ -135,7 +135,7 @@ exports.addRemovePbxGroup = {
135135 initialBuildFileSectionItemsCount = Object . keys ( fileReference ) ,
136136 pbxGroup = proj . addPbxGroup ( [ 'AppDelegate.m' , 'AppDelegate.h' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
137137 afterAdditionBuildFileSectionItemsCount = Object . keys ( fileReference ) ;
138-
138+
139139 test . deepEqual ( initialBuildFileSectionItemsCount , afterAdditionBuildFileSectionItemsCount ) ;
140140 test . done ( ) ;
141141 } ,
@@ -144,7 +144,7 @@ exports.addRemovePbxGroup = {
144144 initialBuildFileSectionItemsCount = Object . keys ( fileReference ) ,
145145 pbxGroup = proj . addPbxGroup ( [ 'KitchenSinktablet.app' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
146146 afterAdditionBuildFileSectionItemsCount = Object . keys ( fileReference ) ;
147-
147+
148148 test . deepEqual ( initialBuildFileSectionItemsCount , afterAdditionBuildFileSectionItemsCount ) ;
149149 test . done ( ) ;
150150 } ,
@@ -154,11 +154,11 @@ exports.addRemovePbxGroup = {
154154 test . notEqual ( fileReference [ key ] . fileRef_comment , 'file.m' ) ;
155155 test . notEqual ( fileReference [ key ] . fileRef_comment , 'assets.bundle' ) ;
156156 }
157-
157+
158158 var initialBuildFileSectionItemsCount = Object . keys ( fileReference ) ,
159159 pbxGroup = proj . addPbxGroup ( [ 'AppDelegate.m' , 'AppDelegate.h' , 'file.m' , 'assets.bundle' ] , 'MyGroup' , 'Application' , '"<group>"' ) ,
160160 afterAdditionBuildFileSectionItemsCount = Object . keys ( fileReference ) ;
161-
161+
162162 // for each file added in the file reference section two keyes are added - one for the object and one for the comment
163163 test . equal ( initialBuildFileSectionItemsCount . length , afterAdditionBuildFileSectionItemsCount . length - 4 ) ;
164164 test . done ( ) ;
@@ -167,10 +167,10 @@ exports.addRemovePbxGroup = {
167167 var groupName = 'MyGroup' ;
168168 proj . addPbxGroup ( [ 'file.m' ] , groupName , 'Application' , 'Application' , '"<group>"' ) ;
169169 proj . removePbxGroup ( groupName ) ;
170-
170+
171171 var pbxGroupInPbx = proj . pbxGroupByName ( groupName ) ;
172172 console . log ( pbxGroupInPbx ) ;
173-
173+
174174 test . ok ( ! pbxGroupInPbx ) ;
175175 test . done ( )
176176 }
0 commit comments