不要怂,就是干,撸起袖子干!

Commit e3ab3456 by Michael Kearns

Move query-generator tests to 'unit' directory

* as these are not integration tests
* also double-quote mocha test path to ensure tests in sub-directories
  are run (e.g. previously, connection-manager.js was not run)
  see: http://stackoverflow.com/a/19902459
* remove unused beforeEach in postgres/query-generator.test.js
1 parent d7cc21b3
...@@ -22,7 +22,7 @@ endif ...@@ -22,7 +22,7 @@ endif
# Unit tests # Unit tests
test-unit: test-unit:
$(MOCHA) --globals setImmediate,clearImmediate --ui tdd --check-leaks --colors -t 15000 --reporter $(REPORTER) ./test/unit/*.js ./test/unit/**/*.js $(MOCHA) --globals setImmediate,clearImmediate --ui tdd --check-leaks --colors -t 15000 --reporter $(REPORTER) ./test/unit/*.js "./test/unit/**/*.js"
test-unit-all: test-unit-sqlite test-unit-mysql test-unit-postgres test-unit-postgres-native test-unit-mariadb test-unit-mssql test-unit-all: test-unit-sqlite test-unit-mysql test-unit-postgres test-unit-postgres-native test-unit-mariadb test-unit-mssql
......
...@@ -13,17 +13,6 @@ var chai = require('chai') ...@@ -13,17 +13,6 @@ var chai = require('chai')
if (dialect.match(/^postgres/)) { if (dialect.match(/^postgres/)) {
describe('[POSTGRES Specific] QueryGenerator', function() { describe('[POSTGRES Specific] QueryGenerator', function() {
beforeEach(function() {
this.User = this.sequelize.define('User', {
username: DataTypes.STRING,
email: { type: DataTypes.ARRAY(DataTypes.TEXT) },
numbers: { type: DataTypes.ARRAY(DataTypes.FLOAT) },
document: { type: DataTypes.HSTORE, defaultValue: { default: '"value"' } }
});
return this.User.sync({ force: true });
});
var suites = { var suites = {
attributesToSQL: [ attributesToSQL: [
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!