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 48437f3e
authored
Nov 10, 2014
by
Seth Samuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test fix
1 parent
95d5ebac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
test/dao-factory.test.js
test/dao.test.js
test/dao-factory.test.js
View file @
48437f3
...
...
@@ -1310,11 +1310,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
return
this
.
User
.
create
({
username
:
"Peter"
,
secretValue
:
"42"
})
.
then
(
function
(
user
){
try
{
expect
(
self
.
User
.
destroy
({
where
:
{
secretValue
:
"42"
}})).
to
.
throw
(
Error
,
"Model is not paranoid"
);
}
catch
(
ex
){
}
expect
(
function
(){
self
.
User
.
restore
({
where
:
{
secretValue
:
"42"
}});}).
to
.
throw
(
Error
,
"Model is not paranoid"
);
})
})
...
...
test/dao.test.js
View file @
48437f3
...
...
@@ -1804,11 +1804,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
return
this
.
User
.
create
({
username
:
"Peter"
,
secretValue
:
"42"
})
.
then
(
function
(
user
){
try
{
expect
(
user
.
destroy
()).
to
.
throw
(
Error
,
"Model is not paranoid"
);
}
catch
(
ex
){
}
expect
(
function
(){
user
.
restore
();}).
to
.
throw
(
Error
,
"Model is not paranoid"
);
})
})
...
...
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