summaryrefslogtreecommitdiff
path: root/cli/tests/cafile_info.ts
diff options
context:
space:
mode:
authorgeoFlux <blakejason5@gmail.com>2020-02-17 11:59:51 -0500
committerGitHub <noreply@github.com>2020-02-17 11:59:51 -0500
commit2e7d449623b7faee8feb0a2970e0d6bb7c66b409 (patch)
tree4b3cae1d91709391fcc8facc2d2dca409349f026 /cli/tests/cafile_info.ts
parent98e585a284f6b8bb568cec52ca3599612b663ef3 (diff)
feat: add --cert flag for http client (#3972)
Diffstat (limited to 'cli/tests/cafile_info.ts')
-rw-r--r--cli/tests/cafile_info.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/tests/cafile_info.ts b/cli/tests/cafile_info.ts
new file mode 100644
index 000000000..e11d106e6
--- /dev/null
+++ b/cli/tests/cafile_info.ts
@@ -0,0 +1,24 @@
+// When run against the test HTTP server, it will serve different media types
+// based on the URL containing `.t#.` strings, which exercises the different
+// mapping of media types end to end.
+
+import { loaded as loadedTs1 } from "https://localhost:5545/cli/tests/subdir/mt_text_typescript.t1.ts";
+import { loaded as loadedTs2 } from "https://localhost:5545/cli/tests/subdir/mt_video_vdn.t2.ts";
+import { loaded as loadedTs3 } from "https://localhost:5545/cli/tests/subdir/mt_video_mp2t.t3.ts";
+import { loaded as loadedTs4 } from "https://localhost:5545/cli/tests/subdir/mt_application_x_typescript.t4.ts";
+import { loaded as loadedJs1 } from "https://localhost:5545/cli/tests/subdir/mt_text_javascript.j1.js";
+import { loaded as loadedJs2 } from "https://localhost:5545/cli/tests/subdir/mt_application_ecmascript.j2.js";
+import { loaded as loadedJs3 } from "https://localhost:5545/cli/tests/subdir/mt_text_ecmascript.j3.js";
+import { loaded as loadedJs4 } from "https://localhost:5545/cli/tests/subdir/mt_application_x_javascript.j4.js";
+
+console.log(
+ "success",
+ loadedTs1,
+ loadedTs2,
+ loadedTs3,
+ loadedTs4,
+ loadedJs1,
+ loadedJs2,
+ loadedJs3,
+ loadedJs4
+);