@wmfs/j2119
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -62,3 +62,3 @@ class NodeValidator { | ||
validateGrandchildren (childNode, name, path, roles, problems) { | ||
if (typeof childNode !== 'object') return | ||
if ((childNode === null) || (typeof childNode !== 'object')) return | ||
@@ -65,0 +65,0 @@ // only objects & arrays have grand children |
{ | ||
"name": "@wmfs/j2119", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "A general-purpose validator generator that uses RFC2119-style assertions as input.", | ||
@@ -5,0 +5,0 @@ "author": "West Midlands Fire Service", |
@@ -19,2 +19,13 @@ /* eslint-env mocha */ | ||
const WITH_NULL_RESULT_PATH = { | ||
StartAt: 'x', | ||
States: { | ||
x: { | ||
Type: 'Pass', | ||
ResultPath: null, | ||
End: true | ||
} | ||
} | ||
} | ||
const WITH_ARRAY_RESULT = { | ||
@@ -135,2 +146,8 @@ StartAt: 'No-op', | ||
it('validate state machine with null result path', () => { | ||
const v = validator(SCHEMA) | ||
const p = v.validate(WITH_NULL_RESULT_PATH) | ||
expect(p.length).to.eql(0) | ||
}) | ||
it('validate state machine with result object', () => { | ||
@@ -137,0 +154,0 @@ const v = validator(SCHEMA) |
Sorry, the diff of this file is not supported yet
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
138997
2899