diff --git a/test/index.test.js b/test/index.test.js index 619cb94f5d..64b90556ce 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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