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

Commit 9dd74200 by Sascha Gehlich

Fix test to use `field: Sequelize.ENUM` when passing values directly to the type

1 parent bc5c30bb
Showing with 2 additions and 6 deletions
...@@ -653,9 +653,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -653,9 +653,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
it('allows values passed as parameters to Sequelize.ENUM', function(done) { it('allows values passed as parameters to Sequelize.ENUM', function(done) {
var Enum = this.sequelize.define('Enum', { var Enum = this.sequelize.define('Enum', {
state: { state: Sequelize.ENUM('happy', 'sad')
type: Sequelize.ENUM('happy', 'sad')
}
}) })
Enum.sync({ force: true }).success(function() { Enum.sync({ force: true }).success(function() {
...@@ -667,9 +665,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -667,9 +665,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
it('allows values passed as an array to Sequelize.ENUM', function(done) { it('allows values passed as an array to Sequelize.ENUM', function(done) {
var Enum = this.sequelize.define('Enum', { var Enum = this.sequelize.define('Enum', {
state: { state: Sequelize.ENUM(['happy', 'sad'])
type: Sequelize.ENUM(['happy', 'sad'])
}
}) })
Enum.sync({ force: true }).success(function() { Enum.sync({ force: true }).success(function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!