Start requirements unit testing (#365)
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('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']);
+ });
+ });
+ });
});