Skip to content

Commit bcdb887

Browse files
committed
reformat
1 parent 40b8dcb commit bcdb887

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/esm-import-assertions/importJson.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ console.log(
1414
);
1515

1616
// Test that omitting the assertion causes node to throw an error
17-
await import('./car.json')
18-
.then(() => {
17+
await import('./car.json').then(
18+
() => {
1919
throw new Error('should have thrown');
2020
},
2121
(error: Error) => {
22-
if(!error.message.includes('foo bar')) {
22+
if (!error.message.includes('foo bar')) {
2323
throw error;
2424
}
2525
/* error is expected */
26-
});
27-
console.log('Done!');
26+
}
27+
);
28+
console.log('Done!');

0 commit comments

Comments
 (0)