You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/06/07 03:31:11 UTC
[04/22] git commit: added another spec for listing multiple plugins
added another spec for listing multiple plugins
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/5ccaec09
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/5ccaec09
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/5ccaec09
Branch: refs/heads/2.8.x
Commit: 5ccaec099e302a8fbefad7d4646b28b6615e3422
Parents: 3ee9664
Author: Fil Maj <ma...@gmail.com>
Authored: Tue Jun 4 14:21:19 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Jun 6 18:26:02 2013 -0700
----------------------------------------------------------------------
spec/cordova-cli/plugin.spec.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/5ccaec09/spec/cordova-cli/plugin.spec.js
----------------------------------------------------------------------
diff --git a/spec/cordova-cli/plugin.spec.js b/spec/cordova-cli/plugin.spec.js
index b24580c..43d4a9a 100644
--- a/spec/cordova-cli/plugin.spec.js
+++ b/spec/cordova-cli/plugin.spec.js
@@ -101,6 +101,12 @@ describe('plugin command', function() {
expect(cordova.plugin('list')).toEqual('No plugins added. Use `cordova plugin add <plugin>`.');
});
+ it('should list out any added plugins in a project', function() {
+ process.chdir(tempDir);
+ var random_plug = 'randomplug';
+ shell.mkdir('-p', path.join(tempDir, 'plugins', random_plug));
+ expect(cordova.plugin('list')).toEqual([random_plug]);
+ });
});
describe('`add`', function() {