Skip to content

Commit

Permalink
style: format file
Browse files Browse the repository at this point in the history
  • Loading branch information
j-tag committed Dec 23, 2023
1 parent cac0d8f commit db8e514
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions blog_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,16 @@ Deno.test(
const body = await resp.text();
assertStringIncludes(body, `Custom post`);
const respStaticFile = await customRootDirectoryTestHandler(
new Request("https://blog.deno.dev/cat_custom_path.png"),
new Request("https://blog.deno.dev/cat_custom_path.png"),
);
assertEquals(respStaticFile.status, 200);
assertEquals(respStaticFile.headers.get("content-type"), "image/png");
const bytes = new Uint8Array(await respStaticFile.arrayBuffer());
assertEquals(bytes, await Deno.readFile(join(TESTDATA_PATH, "./customRootDir/cat_custom_path.png")));
assertEquals(
bytes,
await Deno.readFile(
join(TESTDATA_PATH, "./customRootDir/cat_custom_path.png"),
),
);
},
);

0 comments on commit db8e514

Please sign in to comment.