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 18ca53cd
authored
Nov 14, 2016
by
Felix Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint issues
1 parent
2fbf399c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
test/integration/model/attributes/field.test.js
test/integration/model/attributes/field.test.js
View file @
18ca53c
...
@@ -241,9 +241,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -241,9 +241,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it
(
'increment should work'
,
function
()
{
it
(
'increment should work'
,
function
()
{
return
this
.
Comment
.
destroy
({
truncate
:
true
})
return
this
.
Comment
.
destroy
({
truncate
:
true
})
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(
(
comment
)
=>
comment
.
increment
(
'likes'
))
.
then
(
comment
=>
comment
.
increment
(
'likes'
))
.
then
(
(
comment
)
=>
comment
.
reload
())
.
then
(
comment
=>
comment
.
reload
())
.
then
(
(
comment
)
=>
{
.
then
(
comment
=>
{
expect
(
comment
.
likes
).
to
.
be
.
equal
(
24
);
expect
(
comment
.
likes
).
to
.
be
.
equal
(
24
);
});
});
});
});
...
@@ -251,9 +251,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -251,9 +251,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it
(
'decrement should work'
,
function
()
{
it
(
'decrement should work'
,
function
()
{
return
this
.
Comment
.
destroy
({
truncate
:
true
})
return
this
.
Comment
.
destroy
({
truncate
:
true
})
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(
(
comment
)
=>
comment
.
decrement
(
'likes'
))
.
then
(
comment
=>
comment
.
decrement
(
'likes'
))
.
then
(
(
comment
)
=>
comment
.
reload
())
.
then
(
comment
=>
comment
.
reload
())
.
then
(
(
comment
)
=>
{
.
then
(
comment
=>
{
expect
(
comment
.
likes
).
to
.
be
.
equal
(
22
);
expect
(
comment
.
likes
).
to
.
be
.
equal
(
22
);
});
});
});
});
...
@@ -262,7 +262,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
...
@@ -262,7 +262,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return
this
.
Comment
.
destroy
({
truncate
:
true
})
return
this
.
Comment
.
destroy
({
truncate
:
true
})
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(()
=>
this
.
Comment
.
create
({
note
:
'oh boy, here I go again'
,
likes
:
23
}))
.
then
(()
=>
this
.
Comment
.
sum
(
'likes'
))
.
then
(()
=>
this
.
Comment
.
sum
(
'likes'
))
.
then
(
(
likes
)
=>
{
.
then
(
likes
=>
{
expect
(
likes
).
to
.
be
.
equal
(
23
);
expect
(
likes
).
to
.
be
.
equal
(
23
);
});
});
});
});
...
...
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