Skip to content

Commit 3abd5d4

Browse files
committed
Update addBuildPhase.js
Testing the 'frameworks' key directly.
1 parent 6a8a0ce commit 3abd5d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/addBuildPhase.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,10 @@ exports.addBuildPhase = {
104104

105105
test.deepEqual(initialFileReferenceSectionItemsCount.length, afterAdditionBuildFileSectionItemsCount.length - 2);
106106
test.done();
107-
}
107+
},
108+
'should set target to Frameworks given \'frameworks\' as target': function (test) {
109+
var buildPhase = proj.addBuildPhase(['file.m'], 'PBXCopyFilesBuildPhase', 'Copy Files', proj.getFirstTarget().uuid, 'frameworks').buildPhase;
110+
test.equal(buildPhase.dstSubfolderSpec, 10);
111+
test.done();
112+
},
108113
}

0 commit comments

Comments
 (0)