From a06f4e5289ecd1501627a58b74cd9e25ad555381 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 20 Aug 2013 10:23:51 -0700 Subject: [PATCH] Disable console output for tests --- test/mysql.discover.test.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/mysql.discover.test.js b/test/mysql.discover.test.js index 695546a..515ae1a 100644 --- a/test/mysql.discover.test.js +++ b/test/mysql.discover.test.js @@ -32,7 +32,7 @@ describe('discoverModels', function() { } else { var views = false; models.forEach(function(m) { - console.dir(m); + // console.dir(m); if (m.type === 'view') { views = true; } @@ -57,7 +57,7 @@ describe('discoverModels', function() { } else { var views = false; models.forEach(function(m) { - console.dir(m); + // console.dir(m); if (m.type === 'view') { views = true; } @@ -84,7 +84,7 @@ describe('Discover models including other users', function() { } else { var others = false; models.forEach(function(m) { - console.dir(m); + // console.dir(m); if (m.owner !== 'STRONGLOOP') { others = true; } @@ -105,7 +105,7 @@ describe('Discover model properties', function() { done(err); } else { models.forEach(function(m) { - console.dir(m); + // console.dir(m); assert(m.tableName === 'PRODUCT'); }); done(null, models); @@ -124,7 +124,7 @@ describe('Discover model primary keys', function () { done(err); } else { models.forEach(function (m) { - console.dir(m); + // console.dir(m); assert(m.tableName === 'PRODUCT'); }); done(null, models); @@ -139,7 +139,7 @@ describe('Discover model primary keys', function () { done(err); } else { models.forEach(function (m) { - console.dir(m); + // console.dir(m); assert(m.tableName === 'PRODUCT'); }); done(null, models); @@ -156,7 +156,7 @@ describe('Discover model foreign keys', function () { done(err); } else { models.forEach(function (m) { - console.dir(m); + // console.dir(m); assert(m.fkTableName === 'INVENTORY'); }); done(null, models); @@ -170,7 +170,7 @@ describe('Discover model foreign keys', function () { done(err); } else { models.forEach(function (m) { - console.dir(m); + // console.dir(m); assert(m.fkTableName === 'INVENTORY'); }); done(null, models); @@ -182,7 +182,7 @@ describe('Discover model foreign keys', function () { describe('Discover ADL schema from a table', function () { it('should return an ADL schema for INVENTORY', function (done) { db.discoverSchema('INVENTORY', {owner: 'STRONGLOOP'}, function (err, schema) { - console.log('%j', schema); + // console.log('%j', schema); assert(schema.name === 'Inventory'); assert(schema.options.mysql.schema === 'STRONGLOOP'); assert(schema.options.mysql.table === 'INVENTORY');