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 816d4eab
authored
Oct 31, 2011
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging for travis
1 parent
0f6bf4e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
test/Model/equals.js
test/Model/equals.js
View file @
816d4ea
...
@@ -11,8 +11,8 @@ module.exports = {
...
@@ -11,8 +11,8 @@ module.exports = {
User
.
create
({
name
:
'hallo'
,
bio
:
'welt'
}).
on
(
'success'
,
function
(
u
)
{
User
.
create
({
name
:
'hallo'
,
bio
:
'welt'
}).
on
(
'success'
,
function
(
u
)
{
assert
.
eql
(
u
.
equals
(
u
),
true
)
assert
.
eql
(
u
.
equals
(
u
),
true
)
exit
(
function
(){})
exit
(
function
(){})
})
.
on
(
'failure'
,
function
(
err
)
{
console
.
log
(
err
)
})
})
})
.
on
(
'failure'
,
function
(
err
)
{
console
.
log
(
err
)
})
})
},
},
'it should correctly work with different primary keys'
:
function
(
exit
)
{
'it should correctly work with different primary keys'
:
function
(
exit
)
{
var
User
=
sequelize
.
define
(
'User'
+
config
.
rand
(),
{
var
User
=
sequelize
.
define
(
'User'
+
config
.
rand
(),
{
...
@@ -25,8 +25,8 @@ module.exports = {
...
@@ -25,8 +25,8 @@ module.exports = {
User
.
create
({
foo
:
'1'
,
bar
:
'2'
,
name
:
'hallo'
,
bio
:
'welt'
}).
on
(
'success'
,
function
(
u
)
{
User
.
create
({
foo
:
'1'
,
bar
:
'2'
,
name
:
'hallo'
,
bio
:
'welt'
}).
on
(
'success'
,
function
(
u
)
{
assert
.
eql
(
u
.
equals
(
u
),
true
)
assert
.
eql
(
u
.
equals
(
u
),
true
)
exit
(
function
(){})
exit
(
function
(){})
})
})
.
on
(
'failure'
,
function
(
err
)
{
console
.
log
(
err
)
})
})
})
.
on
(
'failure'
,
function
(
err
)
{
console
.
log
(
err
)
})
},
},
'equalsOneOf should work'
:
function
(
exit
)
{
'equalsOneOf should work'
:
function
(
exit
)
{
var
User
=
sequelize
.
define
(
'User'
+
config
.
rand
(),
{
var
User
=
sequelize
.
define
(
'User'
+
config
.
rand
(),
{
...
...
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