Repository: cordova-cli
Updated Branches:
  refs/heads/master 78688eb0f -> b53810ee7


CB-9861 fixed failing tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/b53810ee
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/b53810ee
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/b53810ee

Branch: refs/heads/master
Commit: b53810ee754bd4a44591388473355efda0aa8653
Parents: 78688eb
Author: Steve Gill <[email protected]>
Authored: Fri Oct 23 21:50:26 2015 -0700
Committer: Steve Gill <[email protected]>
Committed: Fri Oct 23 21:50:26 2015 -0700

----------------------------------------------------------------------
 spec/cli.spec.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/b53810ee/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 1cf0488..7c1ca3b 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -64,32 +64,32 @@ describe("cordova cli", function () {
 
         it("will call command with all arguments passed through", function () {
             cli(["node", "cordova", "build", "blackberry10", "--", "-k", 
"abcd1234"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: false, 
silent: false, platforms: ["blackberry10"], options: ["-k", "abcd1234"], 
browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { argv : [ '-k', 'abcd1234' ] }, verbose : false, 
silent : false, browserify : false, searchpath : undefined });
         });
 
         it("will consume the first instance of -d", function () {
             cli(["node", "cordova", "-d", "build", "blackberry10", "--", "-k", 
"abcd1234", "-d"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: true, 
silent: false, platforms: ["blackberry10"], options: ["-k", "abcd1234", "-d"], 
browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { verbose : true, argv : [ '-k', 'abcd1234', '-d' ] 
}, verbose : true, silent : false, browserify : false, searchpath : undefined 
});
         });
 
         it("will consume the first instance of --verbose", function () {
             cli(["node", "cordova", "--verbose", "build", "blackberry10", 
"--", "-k", "abcd1234", "--verbose"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: true, 
silent: false, platforms: ["blackberry10"], options: ["-k", "abcd1234", 
"--verbose"], browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { verbose : true, argv : [ '-k', 'abcd1234', 
'--verbose' ] }, verbose : true, silent : false, browserify : false, searchpath 
: undefined });
         });
 
         it("will consume the first instance of either --verbose of -d", 
function () {
             cli(["node", "cordova", "--verbose", "build", "blackberry10", 
"--", "-k", "abcd1234", "-d"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: true, 
silent: false, platforms: ["blackberry10"], options: ["-k", "abcd1234", "-d"], 
browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { verbose : true, argv : [ '-k', 'abcd1234', '-d' ] 
}, verbose : true, silent : false, browserify : false, searchpath : undefined 
});
         });
 
         it("will consume the first instance of either --verbose of -d", 
function () {
             cli(["node", "cordova", "-d", "build", "blackberry10", "--", "-k", 
"abcd1234", "--verbose"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: true, 
silent: false, platforms: ["blackberry10"], options: ["-k", "abcd1234", 
"--verbose"], browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { verbose : true, argv : [ '-k', 'abcd1234', 
'--verbose' ] }, verbose : true, silent : false, browserify : false, searchpath 
: undefined });
         });
 
         it("will consume the first instance of --silent", function () {
             cli(["node", "cordova", "--silent", "build", "blackberry10", "--", 
 "-k", "abcd1234", "--silent"]);
-            expect(cordova.raw.build).toHaveBeenCalledWith({verbose: false, 
silent: true, platforms: ["blackberry10"], options: ["-k", "abcd1234", 
"--silent"], browserify: false});
+            expect(cordova.raw.build).toHaveBeenCalledWith({ platforms : [ 
'blackberry10' ], options : { silent : true, argv : [ '-k', 'abcd1234', 
'--silent' ] }, verbose : false, silent : true, browserify : false, searchpath 
: undefined });
         });
 
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to