@@ -75,7 +75,7 @@ describe('addFramework', () => {
7575 } ) ;
7676
7777 it ( 'should populate the PBXFileReference section with 2 fields' , ( ) => {
78- var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ;
78+ var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ,
7979 fileRefSection = proj . pbxFileReferenceSection ( ) ,
8080 frsLength = Object . keys ( fileRefSection ) . length ;
8181
@@ -86,7 +86,7 @@ describe('addFramework', () => {
8686 } ) ;
8787
8888 it ( 'should populate the PBXFileReference comment correctly' , ( ) => {
89- var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ;
89+ var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ,
9090 fileRefSection = proj . pbxFileReferenceSection ( ) ,
9191 commentKey = newFile . fileRef + '_comment' ;
9292
@@ -150,9 +150,9 @@ describe('addFramework', () => {
150150 } ) ;
151151
152152 it ( 'should add to the Frameworks PBXGroup' , ( ) => {
153- var newLength = proj . pbxGroupByName ( 'Frameworks' ) . children . length + 1 ,
154- newFile = proj . addFramework ( 'libsqlite3.dylib' ) ,
155- frameworks = proj . pbxGroupByName ( 'Frameworks' ) ;
153+ var newLength = proj . pbxGroupByName ( 'Frameworks' ) . children . length + 1 ;
154+ proj . addFramework ( 'libsqlite3.dylib' ) ;
155+ var frameworks = proj . pbxGroupByName ( 'Frameworks' ) ;
156156
157157 assert . equal ( frameworks . children . length , newLength ) ;
158158 } ) ;
@@ -167,15 +167,14 @@ describe('addFramework', () => {
167167 } ) ;
168168
169169 it ( 'should add to the PBXFrameworksBuildPhase' , ( ) => {
170- var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ,
171- frameworks = proj . pbxFrameworksBuildPhaseObj ( ) ;
172-
170+ proj . addFramework ( 'libsqlite3.dylib' ) ;
171+ var frameworks = proj . pbxFrameworksBuildPhaseObj ( ) ;
173172 assert . equal ( frameworks . files . length , 16 ) ;
174173 } ) ;
175174
176175 it ( 'should not add to the PBXFrameworksBuildPhase' , ( ) => {
177- var newFile = proj . addFramework ( 'Private.framework' , { link : false } ) ,
178- frameworks = proj . pbxFrameworksBuildPhaseObj ( ) ;
176+ proj . addFramework ( 'Private.framework' , { link : false } ) ;
177+ var frameworks = proj . pbxFrameworksBuildPhaseObj ( ) ;
179178
180179 assert . equal ( frameworks . files . length , 15 ) ;
181180 } ) ;
@@ -190,7 +189,7 @@ describe('addFramework', () => {
190189 } ) ;
191190
192191 it ( 'should return false' , ( ) => {
193- var newFile = proj . addFramework ( 'libsqlite3.dylib' ) ;
192+ proj . addFramework ( 'libsqlite3.dylib' ) ;
194193 assert . ok ( ! proj . addFramework ( 'libsqlite3.dylib' ) ) ;
195194 } ) ;
196195
@@ -219,19 +218,17 @@ describe('addFramework', () => {
219218 } ) ;
220219
221220 it ( 'should add to the Embed Frameworks PBXCopyFilesBuildPhase' , ( ) => {
222- var newFile = proj . addFramework ( '/path/to/SomeEmbeddableCustom.framework' , { customFramework : true , embed : true } ) ,
223- frameworks = proj . pbxEmbedFrameworksBuildPhaseObj ( ) ;
224-
221+ proj . addFramework ( '/path/to/SomeEmbeddableCustom.framework' , { customFramework : true , embed : true } ) ;
222+ var frameworks = proj . pbxEmbedFrameworksBuildPhaseObj ( ) ;
225223 var buildPhaseInPbx = proj . pbxEmbedFrameworksBuildPhaseObj ( ) ;
226224 assert . equal ( buildPhaseInPbx . dstSubfolderSpec , 10 ) ;
227225
228226 assert . equal ( frameworks . files . length , 1 ) ;
229227 } ) ;
230228
231229 it ( 'should not add to the Embed Frameworks PBXCopyFilesBuildPhase by default' , ( ) => {
232- var newFile = proj . addFramework ( '/path/to/Custom.framework' , { customFramework : true } ) ,
233- frameworks = proj . pbxEmbedFrameworksBuildPhaseObj ( ) ;
234-
230+ proj . addFramework ( '/path/to/Custom.framework' , { customFramework : true } ) ;
231+ var frameworks = proj . pbxEmbedFrameworksBuildPhaseObj ( ) ;
235232 assert . equal ( frameworks . files . length , 0 ) ;
236233 } ) ;
237234
0 commit comments