From cc3815e427e37cc63db8f16e9bd134394df99c58 Mon Sep 17 00:00:00 2001 From: Nathanael Bracy Date: Wed, 13 Nov 2024 14:53:50 -0500 Subject: [PATCH] fix: format code Signed-off-by: Nathanael Bracy --- cli/printer.js | 2 +- cli/test/cli/printer-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/printer.js b/cli/printer.js index 6a8dc2a67b06..0f0d09df28cd 100644 --- a/cli/printer.js +++ b/cli/printer.js @@ -59,7 +59,7 @@ function writeToStdout(output) { */ function writeFile(filePath, output, outputMode) { return new Promise((resolve, reject) => { - fs.mkdir(path.dirname(filePath), { recursive: true }, (err) => { + fs.mkdir(path.dirname(filePath), {recursive: true}, (err) => { if (err && err.code !== 'EEXIST') { return reject(err); } diff --git a/cli/test/cli/printer-test.js b/cli/test/cli/printer-test.js index 3bf6687ae86c..a8e3d339bcb6 100644 --- a/cli/test/cli/printer-test.js +++ b/cli/test/cli/printer-test.js @@ -56,14 +56,14 @@ describe('Printer', () => { const report = JSON.stringify(sampleResults); const dir = path.dirname(dirPath); if (fs.existsSync(dir)) { - fs.rmdirSync(dir, { recursive: true }); + fs.rmdirSync(dir, {recursive: true}); } return Printer.write(report, 'json', dirPath).then(_ => { assert.ok(fs.existsSync(dir), `Directory ${dir} should exist now`); const fileContents = fs.readFileSync(dirPath, 'utf8'); assert.ok(/lighthouseVersion/gim.test(fileContents)); fs.unlinkSync(dirPath); - fs.rmdirSync(dir, { recursive: true }); + fs.rmdirSync(dir, {recursive: true}); }); }); });