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 5fa778ea
authored
Dec 28, 2012
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a test for tableName + enabled all tests again
1 parent
ea83dd0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
changelog.md
spec-jasmine/sequelize.spec.js
spec/migrator.spec.js
changelog.md
View file @
5fa778e
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
-
[
FEATURE
]
minConnections option for MySQL pooling (thanks to dominiklessel)
-
[
FEATURE
]
minConnections option for MySQL pooling (thanks to dominiklessel)
-
[
FEATURE
]
added BIGINT data type which is treated like a string (thanks to adamsch1)
-
[
FEATURE
]
added BIGINT data type which is treated like a string (thanks to adamsch1)
-
[
FEATURE
]
https://github.com/sdepold/sequelize/pull/345
-
[
FEATURE
]
https://github.com/sdepold/sequelize/pull/345
-
[
FEATURE
]
allow definition of a models table name (thanks to slamkajs)
# v1.5.0 #
# v1.5.0 #
-
[
REFACTORING
]
use underscore functions for Utils.isHash (thanks to Mick-Hansen/innofluence)
-
[
REFACTORING
]
use underscore functions for Utils.isHash (thanks to Mick-Hansen/innofluence)
...
...
spec-jasmine/sequelize.spec.js
View file @
5fa778e
...
@@ -69,6 +69,17 @@ describe('Sequelize', function() {
...
@@ -69,6 +69,17 @@ describe('Sequelize', function() {
expect
(
typeof
DAO
.
options
.
classMethods
.
localClassMethod
).
toEqual
(
'function'
)
expect
(
typeof
DAO
.
options
.
classMethods
.
localClassMethod
).
toEqual
(
'function'
)
expect
(
typeof
DAO
.
options
.
instanceMethods
.
globalInstanceMethod
).
toEqual
(
'function'
)
expect
(
typeof
DAO
.
options
.
instanceMethods
.
globalInstanceMethod
).
toEqual
(
'function'
)
})
})
it
(
"uses the passed tableName"
,
function
(
done
)
{
var
Photo
=
sequelize
.
define
(
'Foto'
,
{
name
:
Sequelize
.
STRING
},
{
tableName
:
'photos'
})
Photo
.
sync
({
force
:
true
}).
success
(
function
()
{
sequelize
.
getQueryInterface
().
showAllTables
().
success
(
function
(
tableNames
)
{
expect
(
tableNames
).
toInclude
(
'photos'
)
done
})
})
})
})
})
describe
(
'sync'
,
function
()
{
describe
(
'sync'
,
function
()
{
...
...
spec/migrator.spec.js
View file @
5fa778e
...
@@ -10,7 +10,7 @@ if(typeof require === 'function') {
...
@@ -10,7 +10,7 @@ if(typeof require === 'function') {
buster
.
spec
.
expose
()
buster
.
spec
.
expose
()
buster
.
testRunner
.
timeout
=
1000
buster
.
testRunner
.
timeout
=
1000
describe
(
'=>'
+
Helpers
.
getTestDialectTeaser
(
"Migrator"
),
function
()
{
describe
(
Helpers
.
getTestDialectTeaser
(
"Migrator"
),
function
()
{
before
(
function
(
done
)
{
before
(
function
(
done
)
{
this
.
init
=
function
(
options
,
callback
)
{
this
.
init
=
function
(
options
,
callback
)
{
options
=
Helpers
.
Sequelize
.
Utils
.
_
.
extend
({
options
=
Helpers
.
Sequelize
.
Utils
.
_
.
extend
({
...
...
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