diff --git a/lib/schema.js b/lib/schema.js index 856045a..4c02e49 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -33,7 +33,6 @@ var checkArray = function(schema, key, errors, values) { }; /*jshint loopfunc:true*/ - Schema.prototype.validate = function(data) { var params = _.keys(this.schema); var errors = {}; @@ -70,8 +69,7 @@ Schema.prototype.validate = function(data) { } } } - } - else if (!_.isUndefined(value)) { + } else if (!_.isUndefined(value)) { values[params[i]] = value; } diff --git a/test/properties.js b/test/properties.js index 988ced5..964dbed 100644 --- a/test/properties.js +++ b/test/properties.js @@ -3,7 +3,6 @@ describe("filter schemas", function() /*jshint expr:true*/ var schemajs = (typeof window === 'undefined') ? require('../schema') : window.schema; var expect = (typeof window === 'undefined') ? require('chai').expect : window.chai.expect; - it("minimum string length property", function() { var schema = schemajs.create(