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 e3a3e563
authored
Jan 27, 2015
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for #3012
1 parent
6f898d85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
test/integration/model/attributes/field.test.js
test/integration/model/attributes/field.test.js
View file @
e3a3e56
...
@@ -29,6 +29,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -29,6 +29,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
name
:
{
name
:
{
type
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
,
field
:
'full_name'
field
:
'full_name'
},
taskCount
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'task_count'
,
defaultValue
:
0
,
allowNull
:
false
}
}
},
{
},
{
tableName
:
'users'
,
tableName
:
'users'
,
...
@@ -96,6 +102,11 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -96,6 +102,11 @@ describe(Support.getTestDialectTeaser('Model'), function() {
},
},
full_name
:
{
full_name
:
{
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
task_count
:
{
type
:
DataTypes
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
}
}
}),
}),
queryInterface
.
createTable
(
'tasks'
,
{
queryInterface
.
createTable
(
'tasks'
,
{
...
@@ -357,6 +368,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -357,6 +368,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
});
});
});
it
(
'should work with increment'
,
function
()
{
return
this
.
User
.
create
().
then
(
function
(
user
)
{
return
user
.
increment
(
'taskCount'
);
});
});
it
(
'should work with a simple where'
,
function
()
{
it
(
'should work with a simple where'
,
function
()
{
var
self
=
this
;
var
self
=
this
;
...
...
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