Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 31, 2024
1 parent dd748e8 commit 13eff1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,10 @@ Deno.test({
await init();
assertThrows(
() => {
parseModule("./bad.ts", new TextEncoder().encode(`console.log("hello");`));
parseModule(
"./bad.ts",
new TextEncoder().encode(`console.log("hello");`),
);
},
Error,
"relative URL without a base",
Expand All @@ -687,7 +690,10 @@ Deno.test({
await init();
assertThrows(
() => {
parseModule("file:///a/test.md", new TextEncoder().encode(`# Some Markdown\n\n**bold**`));
parseModule(
"file:///a/test.md",
new TextEncoder().encode(`# Some Markdown\n\n**bold**`),
);
},
Error,
"The module's source code could not be parsed",
Expand Down

0 comments on commit 13eff1d

Please sign in to comment.