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 39fda2ce
authored
Oct 14, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'doneCbArgs' of
https://github.com/janmeier/sequelize
into janmeier-doneCbArgs
2 parents
0a1661c7
9ed4f7a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/emitters/custom-event-emitter.js
test/dao-factory.test.js
lib/emitters/custom-event-emitter.js
View file @
39fda2c
...
...
@@ -49,7 +49,7 @@ module.exports = (function() {
function
(
fct
)
{
fct
=
bindToProcess
(
fct
);
this
.
on
(
'error'
,
function
(
err
)
{
fct
(
err
,
null
)
})
.
on
(
'success'
,
function
(
result
)
{
fct
(
null
,
result
)
})
.
on
(
'success'
,
function
(
arg0
,
arg1
)
{
fct
(
null
,
arg0
,
arg1
)
})
return
this
}
...
...
test/dao-factory.test.js
View file @
39fda2c
...
...
@@ -355,7 +355,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
};
this
.
User
.
create
(
data
).
success
(
function
(
user
)
{
self
.
User
.
findOrCreate
(
data
).
success
(
function
(
_user
,
created
)
{
self
.
User
.
findOrCreate
(
data
).
done
(
function
(
err
,
_user
,
created
)
{
expect
(
_user
.
id
).
to
.
equal
(
user
.
id
)
expect
(
_user
.
username
).
to
.
equal
(
'Username'
)
expect
(
_user
.
data
).
to
.
equal
(
'ThisIsData'
)
...
...
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