Skip to content

Commit

Permalink
fix: format code
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Bracy <njtbracy@protonmail.com>
  • Loading branch information
servusdei2018 committed Nov 13, 2024
1 parent 7c9b5b8 commit cc3815e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions cli/test/cli/printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
});
});
});

0 comments on commit cc3815e

Please sign in to comment.