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 34b680d8
authored
Jul 16, 2013
by
Daniel Durante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to add a done() callback as well as improperly calling updateAttributes.
1 parent
40833872
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
spec/dao-factory.spec.js
spec/dao-factory.spec.js
View file @
34b680d
...
@@ -743,7 +743,7 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
...
@@ -743,7 +743,7 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
})
// - bulkCreate
})
// - bulkCreate
describe
(
'update'
,
function
()
{
describe
(
'update'
,
function
()
{
it
(
'allows sql logging of updated statements'
,
function
()
{
it
(
'allows sql logging of updated statements'
,
function
(
done
)
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{
name
:
Sequelize
.
STRING
,
name
:
Sequelize
.
STRING
,
bio
:
Sequelize
.
TEXT
bio
:
Sequelize
.
TEXT
...
@@ -754,8 +754,8 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
...
@@ -754,8 +754,8 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
this
.
sequelize
.
sync
({
force
:
true
}).
success
(
function
()
{
this
.
sequelize
.
sync
({
force
:
true
}).
success
(
function
()
{
User
.
create
({
name
:
'meg'
,
bio
:
'none'
}).
success
(
function
(
u
)
{
User
.
create
({
name
:
'meg'
,
bio
:
'none'
}).
success
(
function
(
u
)
{
expect
(
u
).
toBeDefined
()
expect
(
u
).
toBeDefined
()
expect
(
u
).
not
.
toBe
(
null
)
expect
(
u
).
not
.
toBe
Null
(
)
u
.
set
Attributes
({
name
:
'brian'
}).
on
(
'sql'
,
function
(
sql
)
{
u
.
update
Attributes
({
name
:
'brian'
}).
on
(
'sql'
,
function
(
sql
)
{
expect
(
sql
).
toBeDefined
()
expect
(
sql
).
toBeDefined
()
expect
(
sql
.
toUpperCase
().
indexOf
(
"UPDATE"
)).
toBeGreaterThan
(
-
1
)
expect
(
sql
.
toUpperCase
().
indexOf
(
"UPDATE"
)).
toBeGreaterThan
(
-
1
)
done
()
done
()
...
...
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