cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [40/50] git commit: updates to specs following default value changes. (#42)
Date Wed, 28 Nov 2012 18:16:24 GMT
updates to specs following default value changes. (#42)


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

Branch: refs/heads/master
Commit: 20667dccdf10dc8ab93dde2a77776a11c3e44c37
Parents: f6b4033
Author: Fil Maj <maj.fil@gmail.com>
Authored: Sat Oct 6 14:46:34 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Sat Oct 6 14:46:34 2012 -0700

----------------------------------------------------------------------
 spec/config_parser.spec.js |    8 ++++----
 spec/create.spec.js        |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/20667dcc/spec/config_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/config_parser.spec.js b/spec/config_parser.spec.js
index 74c9067..7afeedb 100644
--- a/spec/config_parser.spec.js
+++ b/spec/config_parser.spec.js
@@ -31,8 +31,8 @@ describe('config.xml parser', function () {
             cfg = new config_parser(xml);
         });
 
-        it('should get the packagename', function() {
-            expect(cfg.packageName()).toEqual('io.cordova.hello-cordova');
+        it('should get the (default) packagename', function() {
+            expect(cfg.packageName()).toEqual('io.cordova.hellocordova');
         });
         it('should allow setting the packagename', function() {
             cfg.packageName('this.is.bat.country');
@@ -51,8 +51,8 @@ describe('config.xml parser', function () {
             cfg = new config_parser(xml);
         });
 
-        it('should get the app name', function() {
-            expect(cfg.packageName()).toEqual('io.cordova.hello-cordova');
+        it('should get the (default) app name', function() {
+            expect(cfg.name()).toEqual('HelloCordova');
         });
         it('should allow setting the app name', function() {
             cfg.name('this.is.bat.country');

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/20667dcc/spec/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/create.spec.js b/spec/create.spec.js
index 33f8651..80262d6 100644
--- a/spec/create.spec.js
+++ b/spec/create.spec.js
@@ -16,7 +16,7 @@ describe('create command', function () {
         cordova.create(tempDir);
         var dotc = path.join(tempDir, '.cordova', 'config.json');
         expect(fs.lstatSync(dotc).isFile()).toBe(true);
-        expect(JSON.parse(fs.readFileSync(dotc, 'utf8')).name).toBe("Hello Cordova");
+        expect(JSON.parse(fs.readFileSync(dotc, 'utf8')).name).toBe("HelloCordova");
         var hooks = path.join(tempDir, '.cordova', 'hooks');
         expect(fs.existsSync(hooks)).toBe(true);
         expect(fs.existsSync(path.join(hooks, 'before_platform_add'))).toBe(true);


Mime
View raw message