diff --git a/fixtures/test file.json b/fixtures/test file.json deleted file mode 100644 index eafa3b11..00000000 --- a/fixtures/test file.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "file": "with spaces" -} diff --git a/send_test.ts b/send_test.ts index 7336a5ff..41a5ef76 100644 --- a/send_test.ts +++ b/send_test.ts @@ -129,22 +129,24 @@ test({ }, }); -test({ - name: "send file with spaces", - async fn() { - const { context } = setup("/test%20file.json"); - const fixture = await Deno.readFile("./fixtures/test file.json"); - await send(context, context.request.url.pathname, { - root: "./fixtures", - maxbuffer: 0, - }); - const nativeResponse = await context.response.toDomResponse(); - assertEquals(new Uint8Array(await nativeResponse.arrayBuffer()), fixture); - assertEquals(context.response.type, ".json"); - assertStrictEquals(context.response.headers.get("content-encoding"), null); - context.response.destroy(); - }, -}); +// JSR does not support uploading files with spaces in their filename and +// currently doesn't support excluding certain files. +// test({ +// name: "send file with spaces", +// async fn() { +// const { context } = setup("/test%20file.json"); +// const fixture = await Deno.readFile("./fixtures/test file.json"); +// await send(context, context.request.url.pathname, { +// root: "./fixtures", +// maxbuffer: 0, +// }); +// const nativeResponse = await context.response.toDomResponse(); +// assertEquals(new Uint8Array(await nativeResponse.arrayBuffer()), fixture); +// assertEquals(context.response.type, ".json"); +// assertStrictEquals(context.response.headers.get("content-encoding"), null); +// context.response.destroy(); +// }, +// }); test({ name: "send hidden file throws 403",