[CB-3741] Updating creation tests not to check stderr to avoid failures
when npm has warnings.


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

Branch: refs/heads/master
Commit: 3e673ff0be3c4f38f892804d929563023af305a3
Parents: ff617f4
Author: Jeffrey Heifetz <[email protected]>
Authored: Wed Jun 19 15:32:42 2013 -0400
Committer: Jeffrey Heifetz <[email protected]>
Committed: Fri Jun 21 17:39:58 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/test/cordova/integration/create.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3e673ff0/blackberry10/bin/test/cordova/integration/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/integration/create.js 
b/blackberry10/bin/test/cordova/integration/create.js
index 834fc03..b27ac4e 100644
--- a/blackberry10/bin/test/cordova/integration/create.js
+++ b/blackberry10/bin/test/cordova/integration/create.js
@@ -24,7 +24,7 @@ var childProcess = require('child_process'),
     wrench = require('wrench'),
     fs = require('fs'),
     flag = false,
-    timeout = 10000;
+    timeout = 10000,
     _stdout = "",
     _stderr = "";
 
@@ -62,7 +62,6 @@ describe("create tests", function () {
             expect(project.defaultTarget).toEqual("");
             expect(project.targets).toEqual({});
             expect(fs.existsSync("./build")).toEqual(false);
-            expect(_stderr).toEqual("");
         });
         this.after(function () {
             wrench.rmdirSyncRecursive(tempFolder);
@@ -79,7 +78,6 @@ describe("create tests", function () {
         runs(function () {
             flag = false;
             expect(appIdRegExp.test(fs.readFileSync(appFolder + 
"www/config.xml", "utf-8"))).toEqual(true);
-            expect(_stderr).toEqual("");
         });
         this.after(function () {
             wrench.rmdirSyncRecursive(tempFolder);
@@ -98,7 +96,6 @@ describe("create tests", function () {
             project = JSON.parse(fs.readFileSync(appFolder + projectFile, 
"utf-8"));
             expect(appIdRegExp.test(fs.readFileSync(appFolder + 
"www/config.xml", "utf-8"))).toEqual(true);
             expect(project.barName).toEqual("bb10appV1");
-            expect(_stderr).toEqual("");
         });
         this.after(function () {
             wrench.rmdirSyncRecursive(tempFolder);
@@ -113,7 +110,6 @@ describe("create tests", function () {
         runs(function () {
             flag = false;
             expect(_stdout).toContain("You must give a project PATH");
-            expect(_stderr).toEqual("");
         });
     });
 
@@ -125,7 +121,6 @@ describe("create tests", function () {
         runs(function () {
             flag = false;
             expect(_stdout).toContain("The project path must be an empty 
directory");
-            expect(_stderr).toEqual("");
         });
     });
 
@@ -137,7 +132,6 @@ describe("create tests", function () {
         runs(function () {
             flag = false;
             expect(_stdout).toContain("App ID must be sequence of 
alpha-numeric (optionally seperated by '.') characters, no longer than 50 
characters");
-            expect(_stderr).toEqual("");
         });
     });
 
@@ -149,7 +143,6 @@ describe("create tests", function () {
         runs(function () {
             flag = false;
             expect(_stdout).toContain("BAR filename can only contain 
alpha-numeric, '.', '-' and '_' characters");
-            expect(_stderr).toEqual("");
         });
     });
 });

Reply via email to