From 3a0bf89ca8c5291b1bc36f593cd61bf3c6f58ef8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 6 Jul 2012 11:15:15 -0400 Subject: [PATCH] test bug fixed, not it's writes logs to screen and do not create server --- server.js | 5 +++-- test/test.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index cb21fc15..2b72399e 100644 --- a/server.js +++ b/server.js @@ -217,9 +217,10 @@ CloudServer.init=(function(){ * not created, just init and * all logs writed to screen */ - if(process.argv[1]==='testing'){ + console.log(process.argv[2]); + if(process.argv[2]==='test'){ CloudServer.Config.server=false; - CloudServer.logs=true; + CloudServer.Config.logs=true; } if(CloudServer.Config.logs){ diff --git a/test/test.sh b/test/test.sh index 71405a32..e509d61e 100644 --- a/test/test.sh +++ b/test/test.sh @@ -7,5 +7,5 @@ jshint --config ./.jshintrc ./lib/cloudfunc.js ./lib/server/minify.js ./lib/clie echo "jshint ./package.json ./config.json" jshint --config ./.jshintrc ./package.json ./config.json npm i uglify-js clean-css html-minifier css-b64-images -node server.js testing +node server.js test ls ./min \ No newline at end of file