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 f5d6c287
authored
Jan 04, 2016
by
Sushant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix(#1150) deepClone to check findOne/All properly clones option
1 parent
649e43cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
test/unit/model/findall.test.js
test/unit/model/findone.test.js
test/unit/model/findall.test.js
View file @
f5d6c28
...
...
@@ -96,7 +96,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
include
:
[
'name'
]
}
};
var
optionsClones
=
_
.
clone
(
options
);
var
optionsClones
=
_
.
clone
Deep
(
options
);
return
Model
.
findAll
(
options
).
bind
(
this
).
then
(
function
()
{
expect
(
options
).
to
.
deep
.
equal
(
optionsClones
);
});
...
...
test/unit/model/findone.test.js
View file @
f5d6c28
...
...
@@ -71,7 +71,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it
(
'properly clones options values'
,
function
()
{
var
options
=
{
where
:
{
id
:
{
$gt
:
42
}}}
,
optionsClones
=
_
.
clone
(
options
)
,
optionsClones
=
_
.
clone
Deep
(
options
)
,
Model
=
current
.
define
(
'model'
);
return
Model
.
findOne
(
options
).
bind
(
this
).
then
(
function
()
{
...
...
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