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 7aa4c0ea
authored
Sep 07, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unit test for #2231
1 parent
b7e567ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
test/dao-factory/create.test.js
test/dao-factory/create.test.js
View file @
7aa4c0e
...
@@ -357,6 +357,18 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -357,6 +357,18 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
})
})
it
(
'should work with a non-id named uuid primary key columns'
,
function
()
{
var
Monkey
=
this
.
sequelize
.
define
(
'Monkey'
,
{
monkeyId
:
{
type
:
DataTypes
.
UUID
,
primaryKey
:
true
,
defaultValue
:
DataTypes
.
UUIDV4
,
allowNull
:
false
}
});
return
this
.
sequelize
.
sync
({
force
:
true
}).
then
(
function
()
{
return
Monkey
.
create
();
}).
then
(
function
(
monkey
)
{
expect
(
monkey
.
get
(
'monkeyId'
)).
to
.
be
.
ok
;
});
})
it
(
'is possible to use functions as default values'
,
function
(
done
)
{
it
(
'is possible to use functions as default values'
,
function
(
done
)
{
var
self
=
this
var
self
=
this
,
userWithDefaults
,
userWithDefaults
...
...
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