diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-21 13:06:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 13:06:12 +0200 |
commit | 5f9c1c7da6047ee8612e71f8ef4ca9c950b3a699 (patch) | |
tree | 7a2175a4c8c9a694924dad5183790d3c75a8bf5e /cli/tests/integration_tests.rs | |
parent | bebb8c029fff56f3a6e653b757583ab5c1d4b11f (diff) |
fix: disallow http imports for modules loaded over https (#5680)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index de894f064..cec081ea6 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1686,6 +1686,20 @@ itest_ignore!(cafile_info { http_server: true, }); +itest!(disallow_http_from_https_js { + args: "run --quiet --reload --cert tls/RootCA.pem https://localhost:5545/cli/tests/disallow_http_from_https.js", + output: "disallow_http_from_https_js.out", + http_server: true, + exit_code: 1, +}); + +itest!(disallow_http_from_https_ts { + args: "run --quiet --reload --cert tls/RootCA.pem https://localhost:5545/cli/tests/disallow_http_from_https.ts", + output: "disallow_http_from_https_ts.out", + http_server: true, + exit_code: 1, +}); + itest!(fix_js_import_js { args: "run --quiet --reload fix_js_import_js.ts", output: "fix_js_import_js.ts.out", |