Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ocd

closes #718
  • Loading branch information...
commit 350fa941ab0db7ac65961e6f742efaf6e1564c25 1 parent 0b763a8
Aaron Heckmann aheckmann authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/schema.test.js
12 test/schema.test.js
View
@@ -456,7 +456,7 @@ module.exports = {
Animal.path('isFerret').doValidate(undefined, function(err){
err.should.be.an.instanceof(ValidatorError);
});
-
+
Animal.path('isFerret').doValidate(true, function(err){
should.strictEqual(err, null);
});
@@ -482,9 +482,9 @@ module.exports = {
Animal.path('isFerret').cast('1').should.be.true;
},
-'test async multiple validators': function(beforeExit){
+ 'test async multiple validators': function(beforeExit){
var executed = 0;
-
+
function validator (value, fn) {
setTimeout(function(){
executed++;
@@ -493,8 +493,8 @@ module.exports = {
};
var Animal = new Schema({
- ferret: {
- type: Boolean,
+ ferret: {
+ type: Boolean,
validate: [
{
'validator': validator,
@@ -519,7 +519,7 @@ module.exports = {
'test async validators': function(beforeExit){
var executed = 0;
-
+
function validator (value, fn) {
setTimeout(function(){
executed++;
Please sign in to comment.
Something went wrong with that request. Please try again.