You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/03/25 01:04:26 UTC

[cordova-cli] branch master updated: Start requirements unit testing (#365)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 4943da8  Start requirements unit testing (#365)
4943da8 is described below

commit 4943da8d65c0bec4687a93e28b5be85d13c08855
Author: Chris Brody <ch...@brody.consulting>
AuthorDate: Sun Mar 24 21:04:22 2019 -0400

    Start requirements unit testing (#365)
---
 spec/cli.spec.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 7f0ab5d..7e7b626 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -513,4 +513,16 @@ describe('cordova cli', () => {
         });
 
     });
+
+    describe('requirements', () => {
+        beforeEach(() => {
+            spyOn(cordova, 'requirements').and.returnValue(Promise.resolve({ browser: [] }));
+        });
+
+        it('should succeed on browser as the platform argument to the requirement check method.', () => {
+            return cli(['node', 'cordova', 'requirements', 'browser']).then(() => {
+                expect(cordova.requirements).toHaveBeenCalledWith(['browser']);
+            });
+        });
+    });
 });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org