mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 00:22:05 +00:00
update tests
This commit is contained in:
parent
0eb3fc4a05
commit
52ee3d050d
@ -96,7 +96,8 @@ export default async function () {
|
|||||||
if (error) {
|
if (error) {
|
||||||
errors.push({ type: 'handled', route, error })
|
errors.push({ type: 'handled', route, error })
|
||||||
}
|
}
|
||||||
} catch (err) /* istanbul ignore next */ {
|
} catch (err) {
|
||||||
|
/* istanbul ignore next */
|
||||||
errors.push({ type: 'unhandled', route, error: err })
|
errors.push({ type: 'unhandled', route, error: err })
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -110,6 +110,7 @@ class Module {
|
|||||||
// Call module with `this` context and pass options
|
// Call module with `this` context and pass options
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const result = module.call(this, options, err => {
|
const result = module.call(this, options, err => {
|
||||||
|
/* istanbul ignore if */
|
||||||
if (err) {
|
if (err) {
|
||||||
return reject(err)
|
return reject(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user