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 a6eadf1b
authored
Dec 17, 2012
by
shane adams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for bad datatype
1 parent
2ec0a0c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
spec/dao-factory.spec.js
spec/dao-factory.spec.js
View file @
a6eadf1
...
@@ -205,6 +205,20 @@ describe("[" + Helpers.getTestDialectTeaser() + "] DAOFactory", function() {
...
@@ -205,6 +205,20 @@ describe("[" + Helpers.getTestDialectTeaser() + "] DAOFactory", function() {
})
})
})
})
it
(
'raises an error if you mess up the datatype'
,
function
(
done
)
{
try
{
var
User
=
this
.
sequelize
.
define
(
'UserBadDataType'
,
{
activity_date
:
Sequelize
.
DATe
});
done
()
}
catch
(
e
)
{
expect
(
e
.
message
).
toEqual
(
'Unrecognized data type for field activity_date'
)
done
()
}
})
it
(
'sets a 64 bit int in bigint'
,
function
(
done
)
{
it
(
'sets a 64 bit int in bigint'
,
function
(
done
)
{
var
User
=
this
.
sequelize
.
define
(
'UserWithBigIntFields'
,
{
var
User
=
this
.
sequelize
.
define
(
'UserWithBigIntFields'
,
{
big
:
Sequelize
.
BIGINT
big
:
Sequelize
.
BIGINT
...
...
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