Updated Branches: refs/heads/master da57c83a1 -> 01f3b0d73
fixed a few typos Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/01f3b0d7 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/01f3b0d7 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/01f3b0d7 Branch: refs/heads/master Commit: 01f3b0d733534969a46e0345148f6fa8da239b5a Parents: da57c83 Author: Tim Kim <[email protected]> Authored: Wed Apr 24 15:31:20 2013 -0700 Committer: Tim Kim <[email protected]> Committed: Wed Apr 24 15:31:20 2013 -0700 ---------------------------------------------------------------------- spec/platforms/common.spec.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/01f3b0d7/spec/platforms/common.spec.js ---------------------------------------------------------------------- diff --git a/spec/platforms/common.spec.js b/spec/platforms/common.spec.js index 2f54458..a09fd4c 100644 --- a/spec/platforms/common.spec.js +++ b/spec/platforms/common.spec.js @@ -32,6 +32,7 @@ describe('common platform handler', function() { it('should throw if path cannot be resolved', function(){ expect(function(){common.resolveSrcPath(test_dir, 'I_dont_exist')}).toThrow(); }); + it('should not throw if path exists', function(){ shell.mkdir('-p', test_dir); expect(function(){common.resolveSrcPath(test_dir)}).not.toThrow(); @@ -45,6 +46,7 @@ describe('common platform handler', function() { expect(function(){common.resolveTargetPath(test_dir)}).toThrow(); shell.rm('-rf', test_dir); }); + it('should not throw if path cannot be resolved', function(){ expect(function(){common.resolveTargetPath(test_dir)}).not.toThrow(); }); @@ -75,7 +77,7 @@ describe('common platform handler', function() { shell.rm('-rf', project_dir); }); - it('should call cp -f source/dest paths', function(){ + it('should call cp source/dest paths', function(){ shell.mkdir('-p', java_dir); fs.writeFileSync(java_file, 'contents', 'utf-8');
