Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 011f70ef
authored
Dec 05, 2011
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted correct syntax in migration spec
1 parent
161c429e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
spec/migration.spec.js
spec/migration.spec.js
View file @
011f70e
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment