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 c510e147
authored
Feb 12, 2014
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable executable tests
1 parent
9a78a9cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
lib/dao-validator.js
test/sequelize.executable.test.js
lib/dao-validator.js
View file @
c510e14
...
...
@@ -20,6 +20,10 @@ Validator.extend('min', function(str, val) {
return
isNaN
(
number
)
||
number
>=
val
;
})
Validator
.
extend
(
'isUrl'
,
function
(
str
)
{
return
this
.
isURL
(
str
)
})
var
DaoValidator
=
module
.
exports
=
function
(
model
,
options
)
{
options
=
options
||
{}
options
.
skip
=
options
.
skip
||
[]
...
...
@@ -166,8 +170,6 @@ var prepareValidationOfAttribute = function(value, details, validatorType) {
throw
new
Error
(
errorMessage
||
"Validation "
+
validatorType
+
" failed"
)
}
}
// bind to validator obj
// validatorFunction = Utils._.bind(validator[validatorType], validator)
}
return
{
...
...
test/sequelize.executable.test.js
View file @
c510e14
...
...
@@ -9,7 +9,7 @@ var chai = require('chai')
,
path
=
require
(
'path'
)
chai
.
Assertion
.
includeStack
=
true
/*
describe
(
Support
.
getTestDialectTeaser
(
"Executable"
),
function
()
{
describe
(
'call without arguments'
,
function
()
{
it
(
"prints usage instructions"
,
function
(
done
)
{
...
...
@@ -434,4 +434,3 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
})
})([
'--url'
,
'-U'
])
})
*/
\ No newline at end of file
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