mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
update tests
This commit is contained in:
parent
0eb3fc4a05
commit
52ee3d050d
@ -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 {
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user