From 3d19fb493b82a8ab9b3fd0fa923fc81fd68acb4e Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 26 Oct 2020 07:17:58 +1100 Subject: fix(cli): properly handle roots with extensions that don't match media type (#8114) --- cli/tests/integration_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index d88309cb2..74fac3ab1 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2722,6 +2722,18 @@ itest!(_053_import_compression { http_server: true, }); +itest!(cache_extensionless { + args: "cache --reload http://localhost:4545/cli/tests/subdir/no_js_ext", + output: "cache_extensionless.out", + http_server: true, +}); + +itest!(cache_random_extension { + args: "cache --reload http://localhost:4545/cli/tests/subdir/no_js_ext@1.0.0", + output: "cache_random_extension.out", + http_server: true, +}); + itest!(cafile_url_imports { args: "run --quiet --reload --cert tls/RootCA.pem cafile_url_imports.ts", output: "cafile_url_imports.ts.out", -- cgit v1.2.3