Skip to content
Permalink
Browse files
chore: remove plugin save (#781)
  • Loading branch information
erisu committed Nov 7, 2019
1 parent d44aa85 commit b3a612e8d5488c6fbe3cc06e425f0dc6a1db0f8f
Showing 4 changed files with 0 additions and 331 deletions.
@@ -99,14 +99,6 @@ describe('cordova/plugin', function () {
});
});

it('should direct "save" command to the "save" submodule', function () {
spyOn(plugin, 'save').and.returnValue(true);
return plugin('save')
.then(function () {
expect(plugin.save).toHaveBeenCalled();
});
});

it('should direct "list", all other commands and no command at all to the "list" submodule', function () {
spyOn(plugin, 'list').and.returnValue(true);
return plugin('list')

This file was deleted.

@@ -20,13 +20,11 @@
var cordova_util = require('../util');
var CordovaError = require('cordova-common').CordovaError;
var HooksRunner = require('../../hooks/HooksRunner');
const { events } = require('cordova-common');

module.exports = plugin;
module.exports.add = require('./add');
module.exports.remove = require('./remove');
module.exports.list = require('./list');
module.exports.save = require('./save');

function plugin (command, targets, opts) {
// CB-10519 wrap function code into promise so throwing error
@@ -84,10 +82,6 @@ function plugin (command, targets, opts) {
case 'rm':
case 'remove':
return module.exports.remove(projectRoot, targets, hooksRunner, opts);
case 'save':
// save the versions/folders/git-urls of currently installed plugins into config.xml
events.emit('warn', 'This command has been deprecated and will be removed in the next major release of Cordova.');
return module.exports.save(projectRoot, opts);
default:
return module.exports.list(projectRoot, hooksRunner);
}

This file was deleted.

0 comments on commit b3a612e

Please sign in to comment.