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 45fbddcf
authored
Nov 15, 2011
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for correct port and host passing
1 parent
aec8f8a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
spec/sequelize.spec.js
spec/sequelize.spec.js
View file @
45fbddc
...
@@ -10,4 +10,12 @@ describe('Sequelize', function() {
...
@@ -10,4 +10,12 @@ describe('Sequelize', function() {
var
Model
=
sequelize
.
define
(
'model'
,
{
name
:
Sequelize
.
STRING
})
var
Model
=
sequelize
.
define
(
'model'
,
{
name
:
Sequelize
.
STRING
})
expect
(
Model
.
options
.
underscored
).
toBeTruthy
()
expect
(
Model
.
options
.
underscored
).
toBeTruthy
()
})
})
it
(
'should correctly set the host and the port'
,
function
()
{
var
options
=
{
host
:
'127.0.0.1'
,
port
:
1234
}
,
sequelize
=
new
Sequelize
(
config
.
database
,
config
.
username
,
config
.
password
,
options
)
expect
(
sequelize
.
config
.
host
).
toEqual
(
options
.
host
)
expect
(
sequelize
.
config
.
port
).
toEqual
(
options
.
port
)
})
})
})
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