Skip to content

Commit d0bf4bb

Browse files
author
loay
committed
Add console log errors
1 parent 115ce24 commit d0bf4bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/postgresql.discover.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ describe('Discover model foreign keys', function() {
192192
describe('Discover LDL schema from a table', function() {
193193
it('should return an LDL schema for inventory', function(done) {
194194
db.discoverSchema('inventory', {owner: 'strongloop'}, function(err, schema) {
195+
console.log('This is our err: ', err);
196+
console.log('This is our schema: ', schema);
195197
assert(schema.name === 'Inventory');
196198
assert(schema.options.postgresql.schema === 'strongloop');
197199
assert(schema.options.postgresql.table === 'inventory');
@@ -214,6 +216,7 @@ describe('Discover and build models', function() {
214216
it('should build a model from discovery', function(done) {
215217
db.discoverAndBuildModels('GeoPoint', {schema: 'strongloop'}, function(err, schema) {
216218
schema.Geopoint.find(function(err, data) {
219+
console.log('This is our err: ', err);
217220
assert(!err);
218221
assert(Array.isArray(data));
219222
assert(data[0].location);

0 commit comments

Comments
 (0)