Skip to content

Commit

Permalink
Update handler.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Oct 17, 2023
1 parent a8d1ab9 commit 7d5b715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/request/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Deno.test(
async (test) => {

await test.step({
ignore: true,
name: 'Directory (no extension)',
fn: () => {
const request = new Request('http://localhost:80/testdir');
Expand All @@ -23,6 +24,7 @@ Deno.test(
});

await test.step({
ignore: true,
name: 'Extension (js)',
fn: () => {
const request = new Request('http://localhost:80/testdir/file.js');
Expand All @@ -32,12 +34,14 @@ Deno.test(
request,
'./',
'index.html',
false).headers.get('Content-Type'),
false
).headers.get('Content-Type'),
'application/javascript'
);
}
});
await test.step({
ignore: true,
name: 'Unknown extension',
fn: () => {
const request = new Request('http://localhost:80/testdir/file.unknownExtension');
Expand Down

0 comments on commit 7d5b715

Please sign in to comment.