ast-types
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -523,7 +523,10 @@ var assert = require("assert"); | ||
assert.ok( | ||
type.check(value), | ||
shallowStringify(value) + | ||
" does not match field " + field + | ||
" of type " + self.typeName); | ||
if (!type.check(value)) { | ||
assert.ok( | ||
false, | ||
shallowStringify(value) + | ||
" does not match field " + field + | ||
" of type " + self.typeName | ||
); | ||
} | ||
@@ -591,7 +594,9 @@ // TODO Could attach getters and setters here to enforce | ||
assert.strictEqual( | ||
"type" in object, false, | ||
"did not recognize object of type " + | ||
JSON.stringify(object.type) | ||
); | ||
if ("type" in object) { | ||
assert.ok( | ||
false, | ||
"did not recognize object of type " + | ||
JSON.stringify(object.type) | ||
); | ||
} | ||
@@ -598,0 +603,0 @@ return Object.keys(object); |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"homepage": "http://github.com/benjamn/ast-types", | ||
@@ -24,0 +24,0 @@ "repository": { |
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
108173
2542