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

Commit 011f70ef by sdepold

reverted correct syntax in migration spec

1 parent 161c429e
Showing with 21 additions and 3 deletions
...@@ -11,6 +11,8 @@ describe('Migration', function() { ...@@ -11,6 +11,8 @@ describe('Migration', function() {
var migrator = new Migrator(sequelize) var migrator = new Migrator(sequelize)
, migration = new Migration(migrator, '/var/lib/20111117063700-asd.js') , migration = new Migration(migrator, '/var/lib/20111117063700-asd.js')
// the syntax in the following tests are correct
// don't touch them! the functions will get stringified below
var tests = [ var tests = [
{ {
topic: function(migration, DataTypes) { topic: function(migration, DataTypes) {
...@@ -26,19 +28,35 @@ describe('Migration', function() { ...@@ -26,19 +28,35 @@ describe('Migration', function() {
}, },
{ {
topic: function(migration, DataTypes) { topic: function(migration, DataTypes) {
migration.createTable() migration
.createTable()
}, },
expectation: true expectation: true
}, },
{ {
topic: function(migration, DataTypes) { topic: function(migration, DataTypes) {
migration.createTable() migration.
createTable()
}, },
expectation: true expectation: true
}, },
{ {
topic: function(migration, DataTypes) { topic: function(migration, DataTypes) {
migration.createTable() migration . createTable ()
},
expectation: true
},
{
topic: function(migration, DataTypes) {
/*
migration . createTable()
*/
},
expectation: false
},
{
topic: function(migration, DataTypes) {
migration/* noot noot */.createTable()
}, },
expectation: true expectation: true
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!