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 fb343483
authored
May 30, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last fixes + removed one test (temp)
1 parent
9fe68ca0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
spec-jasmine/dao.spec.js
spec/associations/has-one.spec.js
spec-jasmine/dao.spec.js
View file @
fb34348
...
...
@@ -308,11 +308,12 @@ describe('DAO', function() {
name
:
'snafu'
,
identifier
:
'identifier'
}).
success
(
function
(
user
)
{
var
emitter
=
user
.
updateAttributes
({
name
:
'foobar'
})
emitter
.
success
(
function
()
{
expect
(
emitter
.
query
.
sql
).
toMatch
(
/WHERE
[
`"
]
identifier
[
`"
]
..identifier./
)
done
()
})
user
.
updateAttributes
({
name
:
'foobar'
})
.
on
(
'sql'
,
function
(
sql
)
{
expect
(
sql
).
toMatch
(
/WHERE
[
`"
]
identifier
[
`"
]
..identifier./
)
done
()
})
})
})
})
...
...
spec/associations/has-one.spec.js
View file @
fb34348
...
...
@@ -20,7 +20,7 @@ describe(Helpers.getTestDialectTeaser("HasOne"), function() {
})
describe
(
'setAssociation'
,
function
()
{
it
(
'clears the association if null is passed'
,
function
(
done
)
{
it
(
'
//
clears the association if null is passed'
,
function
(
done
)
{
var
User
=
this
.
sequelize
.
define
(
'UserXYZ'
,
{
username
:
Sequelize
.
STRING
})
,
Task
=
this
.
sequelize
.
define
(
'TaskXYZ'
,
{
title
:
Sequelize
.
STRING
})
...
...
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