Skip to content

Commit

Permalink
chore: remove console logs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 19, 2017
1 parent 8c7cf84 commit 2e45548
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion tests/test_https_allowunmocked.js
Expand Up @@ -20,6 +20,5 @@ test('allowUnmocked for https', {skip: process.env.AIRPLANE}, function(t) {
t.true(typeof body !== 'undefined', 'body should not be undefined');
t.true(body.length !== 0, 'body should not be empty');
t.end();
return console.log(resp.statusCode, 'body length: ', body.length);
});
});
8 changes: 0 additions & 8 deletions tests/test_intercept.js
Expand Up @@ -58,7 +58,6 @@ test("allow override works (2)", function(t) {
mikealRequest(options, function(err, resp, body) {
scope.done();
t.end();
return console.log(resp.statusCode, body);
});
});

Expand Down Expand Up @@ -436,7 +435,6 @@ test("get with reply callback returning array with headers", function(t) {
}, function(res) {
res.setEncoding('utf8');
t.equal(res.statusCode, 202);
console.log('res.headers:', res.headers);
t.deepEqual(res.headers, {
'x-key': 'value',
'x-key-2': 'value 2',
Expand Down Expand Up @@ -1361,7 +1359,6 @@ test("reply with date header", function(t){
, path: '/'
, port: 80
}, function(res) {
console.error(res.headers);
t.equal(res.headers['date'], date.toUTCString());
res.on('end', function() {
scope.done();
Expand Down Expand Up @@ -3472,7 +3469,6 @@ test('define() is backward compatible', function(t) {
});

req.on('error', function(err) {
console.error(err);
// This should never happen.
t.ok(false, 'Error should never occur.');
t.end();
Expand Down Expand Up @@ -3517,7 +3513,6 @@ test('define() works with non-JSON responses', function(t) {
});

req.on('error', function(err) {
console.error(err);
// This should never happen.
t.ok(false, 'Error should never occur.');
t.end();
Expand Down Expand Up @@ -3563,7 +3558,6 @@ test('define() works with binary buffers', function(t) {
});

req.on('error', function(err) {
console.error(err);
// This should never happen.
t.ok(false, 'Error should never occur.');
t.end();
Expand Down Expand Up @@ -4766,10 +4760,8 @@ test('no content type provided', function(t) {
method: 'POST',
headers: {}
}, function(res) {
console.log('haz response');
res.on('data', function() {});
res.once('end', function() {
console.log('response ended');
scope.done();
t.ok(true);
t.end();
Expand Down

0 comments on commit 2e45548

Please sign in to comment.