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 144a7d07
authored
Mar 11, 2013
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spelling
1 parent
7361930c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
changelog.md
spec/dao.spec.js
changelog.md
View file @
144a7d0
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
-
[
FEATURE
]
add increment and decrement methods on dao. #408 (thanks to janmeier/innofluence)
-
[
FEATURE
]
add increment and decrement methods on dao. #408 (thanks to janmeier/innofluence)
-
[
FEATURE
]
unified the result of describeTable
-
[
FEATURE
]
unified the result of describeTable
-
[
FEATURE
]
add support for decimals (thanks to alexyoung)
-
[
FEATURE
]
add support for decimals (thanks to alexyoung)
-
[
FEATURE
]
added DAO.re
fresh
(), which updates the attributes of the DAO in-place (as opposed to doing having to do a find() and returning a new model)
-
[
FEATURE
]
added DAO.re
load
(), which updates the attributes of the DAO in-place (as opposed to doing having to do a find() and returning a new model)
# v1.5.0 #
# v1.5.0 #
-
[
REFACTORING
]
use underscore functions for Utils.isHash (thanks to Mick-Hansen/innofluence)
-
[
REFACTORING
]
use underscore functions for Utils.isHash (thanks to Mick-Hansen/innofluence)
...
...
spec/dao.spec.js
View file @
144a7d0
...
@@ -235,7 +235,7 @@ describe(Helpers.getTestDialectTeaser("DAO"), function() {
...
@@ -235,7 +235,7 @@ describe(Helpers.getTestDialectTeaser("DAO"), function() {
this
.
User
.
create
({
username
:
'John Doe'
}).
done
(
function
(
err
,
originalUser
)
{
this
.
User
.
create
({
username
:
'John Doe'
}).
done
(
function
(
err
,
originalUser
)
{
self
.
User
.
find
(
originalUser
.
id
).
done
(
function
(
err
,
updater
)
{
self
.
User
.
find
(
originalUser
.
id
).
done
(
function
(
err
,
updater
)
{
updater
.
updateAttributes
({
username
:
'Doe John'
}).
done
(
function
()
{
updater
.
updateAttributes
({
username
:
'Doe John'
}).
done
(
function
()
{
// We used a different refernce when calling updateAttributes, so originalUser is now out of sync
// We used a different refer
e
nce when calling updateAttributes, so originalUser is now out of sync
expect
(
originalUser
.
username
).
toEqual
(
'John Doe'
)
expect
(
originalUser
.
username
).
toEqual
(
'John Doe'
)
originalUser
.
reload
().
done
(
function
(
err
,
updatedUser
)
{
originalUser
.
reload
().
done
(
function
(
err
,
updatedUser
)
{
...
...
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