Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "quizas", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A sort-of monad for reading values from objects", | ||
@@ -5,0 +5,0 @@ "main": "src/quizas", |
@@ -9,2 +9,6 @@ "use strict"; | ||
function deepRead(obj, path){ | ||
if(typeof obj !== 'object' || obj === null){ | ||
return {found:false,value:null}; | ||
} | ||
var found = true; | ||
@@ -11,0 +15,0 @@ |
@@ -116,3 +116,11 @@ 'use strict'; | ||
expect(result).to.deep.equal(expected); | ||
}); | ||
describe('Bugs', function() { | ||
it('Should be able to cope with not being passed and object', function(){ | ||
var result = quizas(null, 'prop'); | ||
expect(result.hasValue).to.be.false; | ||
}) | ||
}) | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
413377
10413