Skip to content
Permalink
Browse files
Remove platform.check (#800)
  • Loading branch information
raphinesse committed Oct 10, 2019
1 parent 54d4300 commit 46c75f6179ae0437a7d1c231ef09f7b23bccaee9
Showing 4 changed files with 0 additions and 216 deletions.

This file was deleted.

@@ -103,13 +103,6 @@ describe('cordova/platform', function () {
expect(platform.update).toHaveBeenCalled();
});
});
it('should direct `check` commands to the `check` method/module', function () {
spyOn(platform, 'check').and.returnValue(true);
return platform('check', ['android'])
.then(function () {
expect(platform.check).toHaveBeenCalled();
});
});
it('should direct `list`, all other commands and no command at all to the `list` method/module', function () {
spyOn(platform, 'list').and.returnValue(true);
// test the `list` command directly

This file was deleted.

@@ -30,7 +30,6 @@ module.exports.update = function update (hooksRunner, projectRoot, targets, opts
return addHelper('update', hooksRunner, projectRoot, targets, opts);
};
module.exports.remove = require('./remove');
module.exports.check = require('./check');
module.exports.list = require('./list');
module.exports.getPlatformDetailsFromDir = require('./getPlatformDetailsFromDir');

@@ -75,8 +74,6 @@ function platform (command, targets, opts) {
case 'update':
case 'up':
return module.exports.update(hooksRunner, projectRoot, targets, opts);
case 'check':
return module.exports.check(hooksRunner, projectRoot);
default:
return module.exports.list(hooksRunner, projectRoot, opts);
}

0 comments on commit 46c75f6

Please sign in to comment.