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 5369231a
authored
May 19, 2017
by
Sushant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: failing lint check
1 parent
787f3b3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
test/integration/instance.test.js
test/integration/instance.test.js
View file @
5369231
...
...
@@ -2087,7 +2087,7 @@ describe(Support.getTestDialectTeaser('Instance'), () => {
it
(
'returns false if user is not soft deleted'
,
function
()
{
return
this
.
ParanoidUser
.
create
({
username
:
'fnord'
}).
then
(()
=>
{
return
this
.
ParanoidUser
.
findAll
().
then
(
(
users
)
=>
{
return
this
.
ParanoidUser
.
findAll
().
then
(
users
=>
{
expect
(
users
[
0
].
isSoftDeleted
()).
to
.
be
.
false
;
});
});
...
...
@@ -2095,11 +2095,11 @@ describe(Support.getTestDialectTeaser('Instance'), () => {
it
(
'returns true if user is soft deleted'
,
function
()
{
return
this
.
ParanoidUser
.
create
({
username
:
'fnord'
}).
then
(()
=>
{
return
this
.
ParanoidUser
.
findAll
().
then
(
(
users
)
=>
{
return
this
.
ParanoidUser
.
findAll
().
then
(
users
=>
{
return
users
[
0
].
destroy
().
then
(()
=>
{
expect
(
users
[
0
].
isSoftDeleted
()).
to
.
be
.
true
;
return
users
[
0
].
reload
({
paranoid
:
false
}).
then
(
(
user
)
=>
{
return
users
[
0
].
reload
({
paranoid
:
false
}).
then
(
user
=>
{
expect
(
user
.
isSoftDeleted
()).
to
.
be
.
true
;
});
});
...
...
@@ -2120,13 +2120,13 @@ describe(Support.getTestDialectTeaser('Instance'), () => {
return
this
.
ParanoidUserWithCustomDeletedAt
.
sync
({
force
:
true
}).
then
(()
=>
{
return
this
.
ParanoidUserWithCustomDeletedAt
.
create
({
username
:
'fnord'
}).
then
(()
=>
{
return
self
.
ParanoidUserWithCustomDeletedAt
.
findAll
().
then
(
(
users
)
=>
{
return
self
.
ParanoidUserWithCustomDeletedAt
.
findAll
().
then
(
users
=>
{
expect
(
users
[
0
].
isSoftDeleted
()).
to
.
be
.
false
;
return
users
[
0
].
destroy
().
then
(()
=>
{
expect
(
users
[
0
].
isSoftDeleted
()).
to
.
be
.
true
;
return
users
[
0
].
reload
({
paranoid
:
false
}).
then
(
(
user
)
=>
{
return
users
[
0
].
reload
({
paranoid
:
false
}).
then
(
user
=>
{
expect
(
user
.
isSoftDeleted
()).
to
.
be
.
true
;
});
});
...
...
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