mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
test(cli/tests/https_import): use ts file in localhost instead of remote (#7431)
This commit is contained in:
parent
bee36a4de8
commit
e688a701e2
3 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
// TODO Use https://localhost:4555/ but we need more infrastructure to
|
||||
// support verifying self-signed certificates.
|
||||
import { printHello } from "https://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
|
||||
import { printHello } from "https://localhost:5545/cli/tests/subdir/print_hello.ts";
|
||||
|
||||
printHello();
|
||||
|
|
|
@ -2033,8 +2033,9 @@ itest!(exit_error42 {
|
|||
});
|
||||
|
||||
itest!(https_import {
|
||||
args: "run --quiet --reload https_import.ts",
|
||||
args: "run --quiet --reload --cert tls/RootCA.pem https_import.ts",
|
||||
output: "https_import.ts.out",
|
||||
http_server: true,
|
||||
});
|
||||
|
||||
itest!(if_main {
|
||||
|
|
|
@ -11,6 +11,7 @@ const fetchProc = Deno.run({
|
|||
"--reload",
|
||||
"--lock=lock_write_fetch.json",
|
||||
"--lock-write",
|
||||
"--cert=tls/RootCA.pem",
|
||||
"https_import.ts",
|
||||
],
|
||||
});
|
||||
|
@ -25,6 +26,7 @@ const fetchCheckProc = Deno.run({
|
|||
Deno.execPath(),
|
||||
"cache",
|
||||
"--lock=lock_write_fetch.json",
|
||||
"--cert=tls/RootCA.pem",
|
||||
"https_import.ts",
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue