Skip to content

Commit 3547f5f

Browse files
vijaysharmerisu
authored andcommitted
Add Test for runOnlyForDeploymentPostprocessing
1 parent 2681eac commit 3547f5f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/addBuildPhase.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,10 @@ describe('addBuildPhase', () => {
191191
assert.equal(buildPhase.shellPath, '/bin/sh');
192192
assert.equal(buildPhase.shellScript, '"echo \\"hello world!\\""');
193193
});
194+
195+
it('should add runOnlyForDeploymentPostprocessing option to run scripts', () => {
196+
const options = { shellPath: '/bin/sh', shellScript: 'echo "hello world!"', runOnlyForDeploymentPostprocessing: 1 };
197+
const buildPhase = proj.addBuildPhase([], 'PBXShellScriptBuildPhase', 'Run a script', proj.getFirstTarget().uuid, options).buildPhase;
198+
assert.equal(buildPhase.runOnlyForDeploymentPostprocessing, 1);
199+
});
194200
});

0 commit comments

Comments
 (0)