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 17e3fd5b
authored
Apr 02, 2015
by
Ruben Bridgewater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix
1 parent
4bbf4758
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
test/integration/model.test.js
test/integration/model.test.js
View file @
17e3fd5
...
@@ -421,7 +421,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -421,7 +421,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return
this
.
sequelize
.
sync
();
// The second call should not try to create the indices again
return
this
.
sequelize
.
sync
();
// The second call should not try to create the indices again
}).
then
(
function
()
{
}).
then
(
function
()
{
return
this
.
sequelize
.
queryInterface
.
showIndex
(
Model
.
tableName
);
return
this
.
sequelize
.
queryInterface
.
showIndex
(
Model
.
tableName
);
}).
then
(
function
()
{
}).
spread
(
function
()
{
var
primary
,
idx1
,
idx2
;
var
primary
,
idx1
,
idx2
;
if
(
dialect
===
'sqlite'
)
{
if
(
dialect
===
'sqlite'
)
{
...
@@ -980,7 +980,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -980,7 +980,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
});
});
});
it
(
'returns the number of affected rows'
,
function
(
_done
)
{
it
(
'returns the number of affected rows'
,
function
()
{
var
self
=
this
var
self
=
this
,
data
=
[{
username
:
'Peter'
,
secretValue
:
'42'
},
,
data
=
[{
username
:
'Peter'
,
secretValue
:
'42'
},
{
username
:
'Paul'
,
secretValue
:
'42'
},
{
username
:
'Paul'
,
secretValue
:
'42'
},
...
@@ -998,7 +998,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -998,7 +998,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
});
if
(
dialect
===
'postgres'
)
{
if
(
dialect
===
'postgres'
)
{
it
(
'returns the affected rows if `options.returning` is true'
,
function
(
_done
)
{
it
(
'returns the affected rows if `options.returning` is true'
,
function
()
{
var
self
=
this
var
self
=
this
,
data
=
[{
username
:
'Peter'
,
secretValue
:
'42'
},
,
data
=
[{
username
:
'Peter'
,
secretValue
:
'42'
},
{
username
:
'Paul'
,
secretValue
:
'42'
},
{
username
:
'Paul'
,
secretValue
:
'42'
},
...
...
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