Updated Branches: refs/heads/master dc4fcb5d3 -> 8c9783a33
Update fetch tests now that clonePluginGitRepo always has a callback. Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/8c9783a3 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/8c9783a3 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/8c9783a3 Branch: refs/heads/master Commit: 8c9783a337edfe57c0d9c1d263ccd430851d775a Parents: dc4fcb5 Author: Braden Shepherdson <[email protected]> Authored: Tue Jun 4 11:12:56 2013 -0400 Committer: Braden Shepherdson <[email protected]> Committed: Tue Jun 4 11:12:56 2013 -0400 ---------------------------------------------------------------------- spec/fetch.spec.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/8c9783a3/spec/fetch.spec.js ---------------------------------------------------------------------- diff --git a/spec/fetch.spec.js b/spec/fetch.spec.js index c5f747c..88a1e20 100644 --- a/spec/fetch.spec.js +++ b/spec/fetch.spec.js @@ -42,7 +42,7 @@ describe('fetch', function() { var url = "https://github.com/bobeast/GAPlugin.git"; var dir = 'fakeSubDir'; fetch(url, temp, { subdir: dir }); - expect(s).toHaveBeenCalledWith(url, temp, dir, undefined, undefined); + expect(s).toHaveBeenCalledWith(url, temp, dir, undefined, jasmine.any(Function)); }); it('should call clonePluginGitRepo with subdir and git ref if applicable', function() { var s = spyOn(plugins, 'clonePluginGitRepo'); @@ -50,7 +50,7 @@ describe('fetch', function() { var dir = 'fakeSubDir'; var ref = 'fakeGitRef'; fetch(url, temp, { subdir: dir, git_ref: ref }); - expect(s).toHaveBeenCalledWith(url, temp, dir, ref, undefined); + expect(s).toHaveBeenCalledWith(url, temp, dir, ref, jasmine.any(Function)); }); it('should throw if used with url and `link` param', function() { expect(function() {
