test: all tests are passing because of empty model discovery
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
This commit is contained in:
parent
b057c20fe2
commit
7fdf1771fe
|
@ -242,6 +242,11 @@ describe('Discover model generated columns', function() {
|
||||||
it('should return an array of columns for STRONGLOOP.TESTGEN and the first is generated', function(done) {
|
it('should return an array of columns for STRONGLOOP.TESTGEN and the first is generated', function(done) {
|
||||||
db.discoverModelProperties('testgen', function(err, models) {
|
db.discoverModelProperties('testgen', function(err, models) {
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
|
console.log('[[[[[[[[[[[models]]]]]]]]]]]');
|
||||||
|
console.log(models);
|
||||||
|
console.log(models.length);
|
||||||
|
console.log('[[[[[[[[[[[models]]]]]]]]]]]');
|
||||||
|
|
||||||
models.forEach(function(model) {
|
models.forEach(function(model) {
|
||||||
assert(model.tableName.toLowerCase() === 'testgen');
|
assert(model.tableName.toLowerCase() === 'testgen');
|
||||||
if (model.columnName === 'ID') {
|
if (model.columnName === 'ID') {
|
||||||
|
|
Loading…
Reference in New Issue