mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
eslint
This commit is contained in:
parent
c347a1bf48
commit
00af7e5b53
@ -24,9 +24,7 @@ test.serial('Fail when build not done and try to render', async t => {
|
|||||||
let oldExit = process.exit
|
let oldExit = process.exit
|
||||||
let oldCE = console.error // eslint-disable-line no-console
|
let oldCE = console.error // eslint-disable-line no-console
|
||||||
let _log = ''
|
let _log = ''
|
||||||
console.error = (s) => {
|
console.error = (s) => { _log += s } // eslint-disable-line no-console
|
||||||
_log += s
|
|
||||||
} // eslint-disable-line no-console
|
|
||||||
process.exit = (code) => {
|
process.exit = (code) => {
|
||||||
process.exit = oldExit
|
process.exit = oldExit
|
||||||
console.error = oldCE // eslint-disable-line no-console
|
console.error = oldCE // eslint-disable-line no-console
|
||||||
@ -47,9 +45,7 @@ test.serial('Fail to build when no pages/ directory but is in the parent', async
|
|||||||
let oldExit = process.exit
|
let oldExit = process.exit
|
||||||
let oldCE = console.error // eslint-disable-line no-console
|
let oldCE = console.error // eslint-disable-line no-console
|
||||||
let _log = ''
|
let _log = ''
|
||||||
console.error = (s) => {
|
console.error = (s) => { _log += s } // eslint-disable-line no-console
|
||||||
_log += s
|
|
||||||
} // eslint-disable-line no-console
|
|
||||||
process.exit = (code) => {
|
process.exit = (code) => {
|
||||||
process.exit = oldExit
|
process.exit = oldExit
|
||||||
console.error = oldCE // eslint-disable-line no-console
|
console.error = oldCE // eslint-disable-line no-console
|
||||||
@ -70,9 +66,7 @@ test.serial('Fail to build when no pages/ directory', async t => {
|
|||||||
let oldExit = process.exit
|
let oldExit = process.exit
|
||||||
let oldCE = console.error // eslint-disable-line no-console
|
let oldCE = console.error // eslint-disable-line no-console
|
||||||
let _log = ''
|
let _log = ''
|
||||||
console.error = (s) => {
|
console.error = (s) => { _log += s } // eslint-disable-line no-console
|
||||||
_log += s
|
|
||||||
} // eslint-disable-line no-console
|
|
||||||
process.exit = (code) => {
|
process.exit = (code) => {
|
||||||
process.exit = oldExit
|
process.exit = oldExit
|
||||||
console.error = oldCE // eslint-disable-line no-console
|
console.error = oldCE // eslint-disable-line no-console
|
||||||
|
Loading…
Reference in New Issue
Block a user