Comparing version 0.1.4 to 0.1.5
@@ -65,3 +65,3 @@ | ||
typeCheck(middleware); | ||
propsCheck(_.unnest(middleware)) | ||
propsCheck(_.flatten(middleware)) | ||
} | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "jigawatt", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Influential's Functional, Promise-based Express Middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -251,3 +251,2 @@ /*eslint-env node, mocha */ | ||
it('should return a function with an arity of 3 when given one argument ' + | ||
@@ -262,3 +261,2 @@ 'that is a function', () => { | ||
it('should return a PropsCheckError when a middleware has invalid keys' | ||
@@ -284,9 +282,12 @@ , () => { | ||
const test1 = () => JW(m3); | ||
expect(test1).to.throw(Error); | ||
expect(test1).to.throw(/awesomizer <-> awesomize/); | ||
const test2 = () => JW(m1, [m2, m3]); | ||
expect(test2).to.throw(Error); | ||
expect(test2).to.throw(/awesomizer <-> awesomize/); | ||
const test3 = () => JW({}, [m2, [m1, m3]]); | ||
expect(test3).to.throw(/awesomizer <-> awesomize/); | ||
}); | ||
}); |
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
14443
327