polyclay
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -110,3 +110,3 @@ var | ||
name: 'boolean', | ||
validatorFunc: _.isBoolean, | ||
validatorFunc: function(item) { return _.isBoolean(item) || (item == null); }, | ||
defaultFunc: function() { return false; } | ||
@@ -113,0 +113,0 @@ }); |
{ | ||
"name": "polyclay", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "a schema-enforcing model class for node with optional key-value store persistence", | ||
@@ -5,0 +5,0 @@ "author": "C J Silverio <ceejceej@gmail.com>", |
@@ -168,2 +168,8 @@ // Unit tests for the polyclay model framework. | ||
it('accepts null for boolean properties', function() | ||
{ | ||
var obj = new Model(); | ||
obj.is_valid = null; | ||
}); | ||
it('provides getters & setters for optional properties', function() | ||
@@ -170,0 +176,0 @@ { |
86226
1941