bounce
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -84,2 +84,10 @@ 'use strict'; | ||
if (!err) { | ||
return false; | ||
} | ||
if (err.isBoom) { | ||
return false; | ||
} | ||
for (let i = 0; i < internals.system.length; ++i) { | ||
@@ -86,0 +94,0 @@ if (err instanceof internals.system[i]) { |
{ | ||
"name": "bounce", | ||
"description": "Selective error catching and rewrite rules", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"repository": "git://github.com/hapijs/bounce", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -417,3 +417,13 @@ 'use strict'; | ||
}); | ||
it('identifies null as non-system', () => { | ||
expect(Bounce.isSystem(null)).to.be.false(); | ||
}); | ||
it('identifies boomified system as non-system', () => { | ||
expect(Bounce.isSystem(Boom.boomify(new TypeError()))).to.be.false(); | ||
}); | ||
}); | ||
}); |
18794
391