Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Reduced logging in server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed May 16, 2015
1 parent ba71c2e commit 060e4a4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ describe('Server API tests', function() {
if (!params.zip) {
get_data = 'lat='+params.lat+'&lng='+params.lng;
} else {
console.log('zip address: ', params.zip);
get_data = 'zip='+params.zip;
}
get_data += '&dist='+ params.dist+cat+'&num='+params.num;
console.log("get_data: ", get_data);
var options = {
host: 'localhost',
port: TEST_PORT,
Expand All @@ -43,9 +41,7 @@ describe('Server API tests', function() {

var req = http.request(options, function(res) {
// response is here
console.log(Object.keys(res));
res.on("data", function(chunk){
console.log("Body: " + chunk);
cb(JSON.parse(chunk));
});
});
Expand All @@ -60,7 +56,6 @@ describe('Server API tests', function() {
num:10}, function(chunk) {

assert.notEqual(chunk.length, 0);
console.log(chunk.length);
done();
});
});
Expand All @@ -73,7 +68,6 @@ describe('Server API tests', function() {
num:10}, function(chunk) {

assert.notEqual(chunk.length, 0);
console.log(chunk.length);
done();
});
});
Expand All @@ -84,8 +78,6 @@ describe('Server API tests', function() {
dist:100,
cat:["food;cafe;restaurant","camping","movie_theater;movie_rental"],
num:10}, function(chunk){
console.log(chunk);
console.log("The length of the response: ", chunk.length);
done();
});
});
Expand All @@ -97,7 +89,6 @@ describe('Server API tests', function() {
num:10},function(chunk){

assert.notEqual(chunk.length, 0);
console.log(chunk.length);
done();
});
});
Expand Down Expand Up @@ -140,8 +131,6 @@ describe('Server API tests', function() {
dist:100,
cat:["food;cafe;restaurant","camping","movie_theater;movie_rental"],
num:10}, function(chunk){
console.log(chunk);
console.log("The length of the response: ", chunk.length);
done();
});
});
Expand Down

0 comments on commit 060e4a4

Please sign in to comment.