You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2014/08/22 01:47:46 UTC
git commit: [CB-7355] re added single test to test call through to
cordova-lib cordova raw create
Repository: cordova-cli
Updated Branches:
refs/heads/master 2f42501bb -> bb2337af7
[CB-7355] re added single test to test call through to cordova-lib cordova raw create
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/bb2337af
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/bb2337af
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/bb2337af
Branch: refs/heads/master
Commit: bb2337af774f9e9aa3fe30e6baeeeea5d7adfc80
Parents: 2f42501
Author: Lorin Beer <lo...@gmail.com>
Authored: Thu Aug 21 11:51:46 2014 -0700
Committer: Lorin Beer <lo...@gmail.com>
Committed: Thu Aug 21 16:47:32 2014 -0700
----------------------------------------------------------------------
spec/cli.spec.js | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/bb2337af/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 38f5bac..c619617 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -97,29 +97,18 @@ describe("cordova cli", function () {
});
-/*
- describe("create args", function () {
+ describe("create", function () {
beforeEach(function () {
spyOn(cordova.raw, "create").andReturn(Q());
spyOn(cordova_lib, "CordovaError");
});
- it("will allow copy-from with ':' char", function () {
- cli(["node", "cordova", "create", "a", "b" , "c", "--copy-from", "c:\\personalWWW"]);
- expect(cordova.raw.create).toHaveBeenCalledWith("a","b","c", jasmine.any(Object));
- });
-
- it("will NOT allow copy-from starting with 'http'", function () {
- cli(["node", "cordova", "create", "a", "b" , "c", "--copy-from", "http://www.somesite.com"]);
- expect(cordova_lib.CordovaError).toThrow();
- });
-
- it("will allow link-to with ':' char", function () {
+ it("calls cordova raw create", function () {
cli(["node", "cordova", "create", "a", "b" , "c", "--link-to", "c:\\personalWWW"]);
expect(cordova.raw.create).toHaveBeenCalledWith("a","b","c", jasmine.any(Object));
});
});
-*/
+
describe("plugin", function () {
beforeEach(function () {
spyOn(cordova.raw, "plugin").andReturn(Q());