diff options
author | Marvin Hagemeister <marvin@deno.com> | 2024-05-17 14:35:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 18:05:19 +0530 |
commit | 812f2e4c22182fdbaf783dba3cc9d178783eced7 (patch) | |
tree | 5c0f7123981248b088b7bf007bca0cb9748e5699 /tests/testdata | |
parent | 20cb0e8863beb0d709adc2f41905ce3f1f465447 (diff) |
fix: serve handler error with 0 arguments (#23652)
Fixes https://github.com/denoland/deno/issues/23651
Co-authored-by: Satya Rohith <me@satyarohith.com>
Diffstat (limited to 'tests/testdata')
-rw-r--r-- | tests/testdata/serve/no_args.ts | 5 | ||||
-rw-r--r-- | tests/testdata/serve/port_0.ts (renamed from tests/testdata/serve.ts) | 0 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/testdata/serve/no_args.ts b/tests/testdata/serve/no_args.ts new file mode 100644 index 000000000..891ddea67 --- /dev/null +++ b/tests/testdata/serve/no_args.ts @@ -0,0 +1,5 @@ +export default { + fetch() { + return new Response("deno serve with no args in fetch() works!"); + }, +}; diff --git a/tests/testdata/serve.ts b/tests/testdata/serve/port_0.ts index cdd8476eb..cdd8476eb 100644 --- a/tests/testdata/serve.ts +++ b/tests/testdata/serve/port_0.ts |