Skip to content

Commit

Permalink
take out logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoorberg committed Mar 30, 2019
1 parent 062b829 commit 269894f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/generate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,19 @@ describe(helpers.getTestDialectTeaser('sequelize-auto'), function() {

describe('should be able to generate', function() {
it('the model files.', function(done) {
try {
console.log('A------------');
try {
const self = this;
const db = self.sequelize.config.database;
const testTables = ['Users', 'HistoryLogs', 'ParanoidUsers'];

setupModels(self, function(err, stdout, stderr) {
expect(err).to.be.null;

console.log('------------');
console.log('Error::', err);
console.log('stdout::', stdout);
console.log('------------');
// console.log('------------');
// console.log('Error::', err);
// console.log('stdout::', stdout);
// console.log('------------');

if (stderr) {
console.log(stderr);
Expand Down Expand Up @@ -155,6 +156,7 @@ describe(helpers.getTestDialectTeaser('sequelize-auto'), function() {
throw err;
}
done();
console.log('B------------');
});
} catch (err) {
console.log("Ack:", err);
Expand All @@ -165,8 +167,7 @@ describe(helpers.getTestDialectTeaser('sequelize-auto'), function() {

describe('should be able to require', function() {
before(function(done) {
const self = this;
setupModels(self, done);
setupModels(this, done);
});

it('the HistoryLogs model', function(done) {
Expand Down

0 comments on commit 269894f

Please sign in to comment.