Skip to content

Commit

Permalink
All tests in errors-object test are passed. Additionally tests displa…
Browse files Browse the repository at this point in the history
…y Input vs Errors logs.
  • Loading branch information
parhelium committed Aug 29, 2014
1 parent 8f0039d commit 4ba68b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions test/extensions/errors-array.js
Expand Up @@ -22,8 +22,5 @@ vows.describe('Validation Array with errors').addBatch({
var result = aSchema.errors(input);
assert(result === false, 'errors method should return false');
}
},
'Array.of(length, pattern)': {},
'Array.of(minLength, maxLength, pattern)': {},
'Array.like(array)': {}
}
}).export(module)
8 changes: 6 additions & 2 deletions test/extensions/errors-object.js
Expand Up @@ -25,7 +25,9 @@ vows.describe('Validation Object with errors').addBatch({
}
});
var result = instance.errors(input);
assert(result == false, printTestResult(input, result));
console.log('Input : \n', vows.inspect(input));
console.log('Errors : \n', vows.inspect(result));
assert(result, printTestResult(input, result))
},
'Invalid nested input': function() {
var input = {
Expand All @@ -52,7 +54,9 @@ vows.describe('Validation Object with errors').addBatch({
d: Number
});
var result = instance.errors(input);
assert(result == false, printTestResult(input, result))
console.log('Input : \n', vows.inspect(input));
console.log('Errors : \n', vows.inspect(result));
assert(result, printTestResult(input, result))
}
}
}).export(module)

0 comments on commit 4ba68b7

Please sign in to comment.