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 ee509090
authored
Apr 17, 2015
by
Ruben Bridgewater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecation message in tests
1 parent
2a7c7c73
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
test/integration/associations/belongs-to-many.test.js
test/integration/dialects/postgres/associations.test.js
test/integration/instance.test.js
test/integration/sequelize.test.js
test/integration/associations/belongs-to-many.test.js
View file @
ee50909
This diff is collapsed.
Click to expand it.
test/integration/dialects/postgres/associations.test.js
View file @
ee50909
...
...
@@ -55,8 +55,8 @@ if (dialect.match(/^postgres/)) {
this
.
users
=
null
;
this
.
tasks
=
null
;
this
.
User
.
has
Many
(
this
.
Task
,
{
as
:
'Tasks'
,
through
:
'usertasks'
});
this
.
Task
.
has
Many
(
this
.
User
,
{
as
:
'Users'
,
through
:
'usertasks'
});
this
.
User
.
belongsTo
Many
(
this
.
Task
,
{
as
:
'Tasks'
,
through
:
'usertasks'
});
this
.
Task
.
belongsTo
Many
(
this
.
User
,
{
as
:
'Users'
,
through
:
'usertasks'
});
var
users
=
[]
,
tasks
=
[];
...
...
test/integration/instance.test.js
View file @
ee50909
...
...
@@ -1707,7 +1707,7 @@ describe(Support.getTestDialectTeaser('Instance'), function() {
return
User
.
sync
().
then
(
function
()
{
var
user
=
User
.
build
({
username
:
'foo'
});
expect
(
user
.
values
).
to
.
deep
.
equal
({
username
:
'foo'
,
id
:
null
});
expect
(
user
.
get
({
plain
:
true
})
).
to
.
deep
.
equal
({
username
:
'foo'
,
id
:
null
});
});
});
});
...
...
test/integration/sequelize.test.js
View file @
ee50909
...
...
@@ -397,7 +397,7 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
if
(
Support
.
getTestDialect
()
===
'postgres'
)
{
it
(
'replaces named parameters with the passed object and ignores casts'
,
function
()
{
return
expect
(
this
.
sequelize
.
query
(
'select :one as foo, :two as bar, \'1000\'::integer as baz'
,
null
,
{
raw
:
true
},
{
one
:
1
,
two
:
2
}).
get
(
0
))
return
expect
(
this
.
sequelize
.
query
(
'select :one as foo, :two as bar, \'1000\'::integer as baz'
,
null
,
{
raw
:
true
,
replacements
:
{
one
:
1
,
two
:
2
}
}).
get
(
0
))
.
to
.
eventually
.
deep
.
equal
([{
foo
:
1
,
bar
:
2
,
baz
:
1000
}]);
});
...
...
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