update tests

This commit is contained in:
Pooya Parsa 2017-05-15 03:47:13 +04:30
parent 0eb3fc4a05
commit 52ee3d050d
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,8 @@ export default async function () {
if (error) {
errors.push({ type: 'handled', route, error })
}
} catch (err) /* istanbul ignore next */ {
} catch (err) {
/* istanbul ignore next */
errors.push({ type: 'unhandled', route, error: err })
}
try {

View File

@ -110,6 +110,7 @@ class Module {
// Call module with `this` context and pass options
return new Promise((resolve, reject) => {
const result = module.call(this, options, err => {
/* istanbul ignore if */
if (err) {
return reject(err)
}