This commit is contained in:
Pooya Parsa 2017-06-13 01:11:26 +04:30
parent c347a1bf48
commit 00af7e5b53

View File

@ -24,9 +24,7 @@ test.serial('Fail when build not done and try to render', async t => {
let oldExit = process.exit
let oldCE = console.error // eslint-disable-line no-console
let _log = ''
console.error = (s) => {
_log += s
} // eslint-disable-line no-console
console.error = (s) => { _log += s } // eslint-disable-line no-console
process.exit = (code) => {
process.exit = oldExit
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 oldCE = console.error // eslint-disable-line no-console
let _log = ''
console.error = (s) => {
_log += s
} // eslint-disable-line no-console
console.error = (s) => { _log += s } // eslint-disable-line no-console
process.exit = (code) => {
process.exit = oldExit
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 oldCE = console.error // eslint-disable-line no-console
let _log = ''
console.error = (s) => {
_log += s
} // eslint-disable-line no-console
console.error = (s) => { _log += s } // eslint-disable-line no-console
process.exit = (code) => {
process.exit = oldExit
console.error = oldCE // eslint-disable-line no-console