Skip to content

Commit

Permalink
removing sql-string
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoorberg committed Mar 31, 2019
1 parent ed6684f commit 05f7aa1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 113 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var path = require('path');
var mkdirp = require('mkdirp');
var dialects = require('./dialects');
var _ = require('lodash');
var SqlString = require('./sql-string');
var SqlString = require('../node_modules/sequelize/lib/sql-string');
var tsHelper = require('./ts-helper');
var CLIEngine = require('eslint').CLIEngine;

Expand Down
106 changes: 0 additions & 106 deletions lib/sql-string.js

This file was deleted.

4 changes: 1 addition & 3 deletions lib/ts-helper.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// put in seperate file to keep main sequelize-auto clean
'use strict';

var Sequelize = require('sequelize');
var _ = Sequelize.Utils._;
const _ = require('lodash');

function getModelFileStart(indentation, spaces, tableName) {
var fileStart = "/* jshint indent: " + indentation + " */\n";
Expand Down
3 changes: 0 additions & 3 deletions test/generate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ describe(helpers.getTestDialectTeaser('sequelize-auto'), function() {
describe('should be able to generate', function() {
it('the model files.', function(done) {
this.timeout(10000); // failing on Node 8 + 10 at 2000.
console.log('A------------');
try {
const self = this;
const db = self.sequelize.config.database;
Expand Down Expand Up @@ -150,14 +149,12 @@ describe(helpers.getTestDialectTeaser('sequelize-auto'), function() {
debug('mysql queryPos:', queryPos, 'query:', query);
expect(queryPos).to.be.at.above(-1);
});
debug('***');
}
} catch (err) {
console.log("Error checking stdout:", err);
throw err;
}
done();
console.log('B------------');
});
} catch (err) {
console.log("Ack:", err);
Expand Down

1 comment on commit 05f7aa1

@raythorn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var SqlString = require('../node_modules/sequelize/lib/sql-string');
this line report error, and require('../../sequelize/lib/sql-string') works for me

Please sign in to comment.