read-package-json
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "read-package-json", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", |
@@ -344,2 +344,3 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
var keysLeft = keys.length | ||
if (!keysLeft) return cb() | ||
@@ -346,0 +347,0 @@ function handleExists(relName, result) { |
@@ -15,3 +15,2 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
console.error("Bin test") | ||
tap.test("Bin test", function (t) { | ||
@@ -36,1 +35,11 @@ var p = path.resolve(__dirname, "fixtures/bin.json") | ||
}) | ||
tap.test("Empty bin test", function (t) { | ||
var p = path.resolve(__dirname, "fixtures/emptybin.json") | ||
var warn = createWarningCollector() | ||
readJson(p, warn, function (er, data) { | ||
t.equals(warn.warnings.length, 0) | ||
t.same(data.bin, {}, "no mapping to bin because object was empty") | ||
t.end() | ||
}) | ||
}) |
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
31722
21
646