cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject git commit: added another spec for listing multiple plugins
Date Tue, 04 Jun 2013 21:21:25 GMT
Updated Branches:
  refs/heads/master2 796ad93a0 -> 22d175e3f


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/22d175e3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/22d175e3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/22d175e3

Branch: refs/heads/master2
Commit: 22d175e3f84efc28a2e57bb328bbfefd41777ac2
Parents: 796ad93
Author: Fil Maj <maj.fil@gmail.com>
Authored: Tue Jun 4 14:21:19 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Tue Jun 4 14:21:19 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/22d175e3/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() {


Mime
View raw message