不要怂,就是干,撸起袖子干!

Commit c510e147 by Jan Aagaard Meier

Re-enable executable tests

1 parent 9a78a9cc
......@@ -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 {
......
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!