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 ca6a9e2a
authored
Dec 27, 2013
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix language test which apparently broke
1 parent
0691ced4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
lib/associations/has-one.js
test/language.test.js
lib/associations/has-one.js
View file @
ca6a9e2
...
@@ -21,7 +21,7 @@ module.exports = (function() {
...
@@ -21,7 +21,7 @@ module.exports = (function() {
this
.
associationAccessor
=
this
.
isSelfAssociation
this
.
associationAccessor
=
this
.
isSelfAssociation
?
Utils
.
combineTableNames
(
this
.
target
.
tableName
,
this
.
options
.
as
)
?
Utils
.
combineTableNames
(
this
.
target
.
tableName
,
this
.
options
.
as
)
:
this
.
options
.
as
||
this
.
target
.
tableName
:
this
.
options
.
as
this
.
options
.
useHooks
=
options
.
useHooks
this
.
options
.
useHooks
=
options
.
useHooks
...
...
test/language.test.js
View file @
ca6a9e2
...
@@ -6,12 +6,12 @@ var chai = require('chai')
...
@@ -6,12 +6,12 @@ var chai = require('chai')
chai
.
Assertion
.
includeStack
=
true
chai
.
Assertion
.
includeStack
=
true
describe
(
Support
.
getTestDialectTeaser
(
"Language Util"
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
"Language Util"
),
function
()
{
before
(
function
(
done
)
{
before
Each
(
function
(
done
)
{
this
.
sequelize
.
options
.
language
=
'es'
this
.
sequelize
.
options
.
language
=
'es'
done
()
done
()
})
})
after
(
function
(
done
)
{
after
Each
(
function
(
done
)
{
this
.
sequelize
.
options
.
language
=
'en'
this
.
sequelize
.
options
.
language
=
'en'
done
()
done
()
})
})
...
@@ -37,8 +37,8 @@ describe(Support.getTestDialectTeaser("Language Util"), function() {
...
@@ -37,8 +37,8 @@ describe(Support.getTestDialectTeaser("Language Util"), function() {
table2
.
belongsTo
(
table
)
table2
.
belongsTo
(
table
)
table3
.
hasMany
(
table2
)
table3
.
hasMany
(
table2
)
expect
(
table
.
associations
.
androide
s
.
identifier
).
to
.
equal
(
'arbolId'
)
expect
(
table
.
associations
.
androide
.
identifier
).
to
.
equal
(
'arbolId'
)
expect
(
table2
.
associations
.
arbol
es
).
to
.
exist
expect
(
table2
.
associations
.
arbol
).
to
.
exist
expect
(
table3
.
associations
.
androideshombres
).
to
.
exist
expect
(
table3
.
associations
.
androideshombres
).
to
.
exist
done
()
done
()
})
})
...
...
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