fixed style nits
This commit is contained in:
parent
b3d795b2a7
commit
bbd79c9e1a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Reference in New Issue