Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Jul 25, 2023
1 parent 699f9c2 commit ccef68d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/common/assertSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ async function assertSnapshot(actual, filename = process.argv[1]) {
try {
expected = await fs.readFile(snapshot, 'utf8');
} catch (e) {
if(e.code === 'ENOENT') {
console.log('Snapshot file does not exist. You can create a new one by running the test with NODE_REGENERATE_SNAPSHOTS=1');
if (e.code === 'ENOENT') {
console.log(
'Snapshot file does not exist. You can create a new one by running the test with NODE_REGENERATE_SNAPSHOTS=1',
);
}
throw e;
}
Expand Down

0 comments on commit ccef68d

Please sign in to comment.