diff --git a/test/extensions/errors-array.js b/test/extensions/errors-array.js index a0bc39e..9d91ac7 100644 --- a/test/extensions/errors-array.js +++ b/test/extensions/errors-array.js @@ -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) diff --git a/test/extensions/errors-object.js b/test/extensions/errors-object.js index 5853f9f..63179aa 100644 --- a/test/extensions/errors-object.js +++ b/test/extensions/errors-object.js @@ -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 = { @@ -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)