Skip to content

Commit

Permalink
CB-13055 : updated after PR feedback
Browse files Browse the repository at this point in the history
 This closes #608
  • Loading branch information
audreyso authored and stevengill committed Dec 12, 2017
1 parent 62f7c64 commit 6e22fb4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 136 deletions.
4 changes: 2 additions & 2 deletions integration-tests/platform.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ describe('platform end-to-end', function () {
expect(err).toBeUndefined();
}).fin(done);
});
// was using old fetch code/gitclone... test might not be valid anymore.
xit('Test 002 : should install plugins correctly while adding platform', function (done) {

it('Test 002 : should install plugins correctly while adding platform', function (done) {
cordova.plugin('add', path.join(pluginsDir, 'test'), {'fetch': true})
.then(function () {
return cordova.platform('add', [helpers.testPlatform], {'fetch': true});
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('plugin end-to-end', function () {
.fin(done);
}, 30000);

it('Test 010 : should use registry.info to get plugin & version', function (done) {
it('Test 010 : should select the plugin version based on npm info when fetching from npm', function (done) {
mockPluginFetch(npmInfoTestPlugin, path.join(pluginsDir, npmInfoTestPlugin));

spyOn(plugin_util, 'info').and.callThrough();
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/plugman_fetch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ describe('fetch', function () {
});
});

xdescribe('fetch recursive error CB-8809', function () {
describe('fetch recursive error CB-8809', function () {

var srcDir = path.join(plugins_dir, 'recursivePlug');
var appDir = path.join(plugins_dir, 'recursivePlug', 'demo');
Expand Down
3 changes: 1 addition & 2 deletions src/plugman/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function fetchPlugin (plugin_src, plugins_dir, options) {
}
}
return Q.when().then(function () {
// If it's not a network URL, it's either a local path or a plugin ID.
var plugin_dir = cordovaUtil.fixRelativePath(path.join(plugin_src, options.subdir));
return Q.when().then(function () {
// check if it is a local path
Expand Down Expand Up @@ -114,7 +113,7 @@ function fetchPlugin (plugin_src, plugins_dir, options) {
});
}
}
// If there is no such local path, it's a plugin id or id@versionspec.
// If there is no such local path or it's a git URL, it's a plugin id or id@versionspec.
// First look for it in the local search path (if provided).
var pinfo = findLocalPlugin(plugin_src, options.searchpath, pluginInfoProvider);
if (pinfo) {
Expand Down
130 changes: 0 additions & 130 deletions src/util/npm-helper.js

This file was deleted.

0 comments on commit 6e22fb4

Please sign in to comment.