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 f8b516da
authored
Oct 11, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #978 from chill117/patch-1
Fixed several types
2 parents
ee60814a
55dc6e57
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
test/dao-factory.test.js
test/dao-factory.test.js
View file @
f8b516d
...
@@ -247,7 +247,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -247,7 +247,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
done
()
done
()
})
})
it
(
"stores the
the
passed values in a special variable"
,
function
(
done
)
{
it
(
"stores the passed values in a special variable"
,
function
(
done
)
{
var
user
=
this
.
User
.
build
({
username
:
'John Wayne'
})
var
user
=
this
.
User
.
build
({
username
:
'John Wayne'
})
expect
(
user
.
selectedValues
).
to
.
deep
.
equal
({
username
:
'John Wayne'
})
expect
(
user
.
selectedValues
).
to
.
deep
.
equal
({
username
:
'John Wayne'
})
done
()
done
()
...
@@ -329,7 +329,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -329,7 +329,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
describe
(
'findOrCreate'
,
function
()
{
describe
(
'findOrCreate'
,
function
()
{
it
(
"Returns instace if already existent. Single find field."
,
function
(
done
)
{
it
(
"Returns insta
n
ce if already existent. Single find field."
,
function
(
done
)
{
var
self
=
this
,
var
self
=
this
,
data
=
{
data
=
{
username
:
'Username'
username
:
'Username'
...
@@ -347,7 +347,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -347,7 +347,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
})
})
it
(
"Returns instace if already existent. Multiple find fields."
,
function
(
done
)
{
it
(
"Returns insta
n
ce if already existent. Multiple find fields."
,
function
(
done
)
{
var
self
=
this
,
var
self
=
this
,
data
=
{
data
=
{
username
:
'Username'
,
username
:
'Username'
,
...
@@ -666,7 +666,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -666,7 +666,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
})
})
it
(
'can omit
t
autoincremental columns'
,
function
(
done
)
{
it
(
'can omit autoincremental columns'
,
function
(
done
)
{
var
self
=
this
var
self
=
this
,
data
=
{
title
:
'Iliad'
}
,
data
=
{
title
:
'Iliad'
}
,
dataTypes
=
[
Sequelize
.
INTEGER
,
Sequelize
.
BIGINT
]
,
dataTypes
=
[
Sequelize
.
INTEGER
,
Sequelize
.
BIGINT
]
...
@@ -1110,7 +1110,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -1110,7 +1110,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
describe
(
'destroy'
,
function
()
{
describe
(
'destroy'
,
function
()
{
it
(
'deletes a record from the database if dao is not paranoid'
,
function
(
done
)
{
it
(
'deletes a record from the database if dao is not paranoid'
,
function
(
done
)
{
var
UserDestroy
=
this
.
sequelize
.
define
(
'UserDest
or
y'
,
{
var
UserDestroy
=
this
.
sequelize
.
define
(
'UserDest
ro
y'
,
{
name
:
Sequelize
.
STRING
,
name
:
Sequelize
.
STRING
,
bio
:
Sequelize
.
TEXT
bio
:
Sequelize
.
TEXT
})
})
...
@@ -1405,7 +1405,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -1405,7 +1405,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
})
})
it
(
'should be able to retun a record with primaryKey being null for new inserts'
,
function
(
done
)
{
it
(
'should be able to retu
r
n a record with primaryKey being null for new inserts'
,
function
(
done
)
{
var
Session
=
this
.
sequelize
.
define
(
'Session'
,
{
var
Session
=
this
.
sequelize
.
define
(
'Session'
,
{
token
:
{
type
:
DataTypes
.
TEXT
,
allowNull
:
false
},
token
:
{
type
:
DataTypes
.
TEXT
,
allowNull
:
false
},
lastUpdate
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
false
}
lastUpdate
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
false
}
...
...
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