Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 24, 2017
1 parent 38131d4 commit edca051
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/schema/boolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
var utils = require('../utils');

var SchemaType = require('../schematype');
var CastError = SchemaType.CastError;

/**
* Boolean SchemaType constructor.
Expand Down
8 changes: 4 additions & 4 deletions test/schema.boolean.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ describe('schematype', function() {
var strictValues = [true, false, 'true', 'false', 0, 1, '0', '1'];

var testsRemaining = strictValues.length;
strictValues.forEach(function (value) {
strictValues.forEach(function(value) {
var doc = new M1;
doc.b = value;
doc.validate(function (error) {
doc.validate(function(error) {
if (error) {
// test fails as soon as one value fails
return done(error)
return done(error);
}
if (!--testsRemaining) {
return done()
return done();
}
});
});
Expand Down

0 comments on commit edca051

Please sign in to comment.