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 b9ec63bd
authored
Nov 07, 2014
by
Igor Nawrocki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix, and prittified indentation a bit
1 parent
6f43acd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
test/include/findAll.test.js
test/include/findAll.test.js
View file @
b9ec63b
...
@@ -236,23 +236,17 @@ describe(Support.getTestDialectTeaser("Include"), function () {
...
@@ -236,23 +236,17 @@ describe(Support.getTestDialectTeaser("Include"), function () {
}
}
});
});
it
(
'should work on pretty complicated case'
,
function
()
{
it
(
'should work on pretty complicated case'
,
function
()
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{
var
User
=
this
.
sequelize
.
define
(
'User'
,
{})
})
,
SubscriptionForm
=
this
.
sequelize
.
define
(
'SubscriptionForm'
,
{})
,
SubscriptionForm
=
this
.
sequelize
.
define
(
'SubscriptionForm'
,
{
,
Collection
=
this
.
sequelize
.
define
(
'Collection'
,
{})
})
,
Category
=
this
.
sequelize
.
define
(
'Category'
,
{})
,
Collection
=
this
.
sequelize
.
define
(
'Collection'
,
{
,
SubCategory
=
this
.
sequelize
.
define
(
'SubCategory'
,
{})
})
,
Capital
=
this
.
sequelize
.
define
(
'Capital'
,
{});
,
Category
=
this
.
sequelize
.
define
(
'Category'
,
{
})
,
SubCategory
=
this
.
sequelize
.
define
(
'SubCategory'
,
{
})
,
Capital
=
this
.
sequelize
.
define
(
'Capital'
,
{
});
Capital
.
hasMany
(
Category
,
{
foreignKey
:
'boundCapital'
})
Capital
.
hasMany
(
Category
,
{
foreignKey
:
'boundCapital'
})
SubCategory
.
belongsTo
(
Category
,
{
foreignKey
:
'boundCategory'
})
SubCategory
.
belongsTo
(
Category
,
{
foreignKey
:
'boundCategory'
})
Category
.
belongsTo
(
Capital
,
{
foreignKey
:
'boundCapital'
})
Category
.
belongsTo
(
Capital
,
{
foreignKey
:
'boundCapital'
})
Category
.
hasMany
(
SubCategory
,
{
foreignKey
:
'boundCa
pital
'
})
Category
.
hasMany
(
SubCategory
,
{
foreignKey
:
'boundCa
tegory
'
})
Category
.
hasMany
(
SubscriptionForm
,
{
foreignKey
:
'boundCategory'
})
Category
.
hasMany
(
SubscriptionForm
,
{
foreignKey
:
'boundCategory'
})
Collection
.
belongsTo
(
SubscriptionForm
,
{
foreignKey
:
'boundDesigner'
})
Collection
.
belongsTo
(
SubscriptionForm
,
{
foreignKey
:
'boundDesigner'
})
SubscriptionForm
.
belongsTo
(
User
,
{
foreignKey
:
'boundUser'
})
SubscriptionForm
.
belongsTo
(
User
,
{
foreignKey
:
'boundUser'
})
...
...
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