summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs7
-rw-r--r--cli/tests/testdata/run/import_maps/test_data.ts1
-rw-r--r--cli/tests/testdata/run/import_maps/test_data.ts.out1
3 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 62bfe136f..fd6644326 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -182,6 +182,13 @@ itest!(_033_import_map_remote {
http_server: true,
});
+itest!(_033_import_map_data_uri {
+ args:
+ "run --quiet --reload --import-map=data:application/json;charset=utf-8;base64,ewogICJpbXBvcnRzIjogewogICAgInRlc3Rfc2VydmVyLyI6ICJodHRwOi8vbG9jYWxob3N0OjQ1NDUvIgogIH0KfQ== run/import_maps/test_data.ts",
+ output: "run/import_maps/test_data.ts.out",
+ http_server: true,
+});
+
itest!(onload {
args: "run --quiet --reload run/onload/main.ts",
output: "run/onload/main.out",
diff --git a/cli/tests/testdata/run/import_maps/test_data.ts b/cli/tests/testdata/run/import_maps/test_data.ts
new file mode 100644
index 000000000..5e8efea69
--- /dev/null
+++ b/cli/tests/testdata/run/import_maps/test_data.ts
@@ -0,0 +1 @@
+import "test_server/import_maps/lodash/lodash.ts";
diff --git a/cli/tests/testdata/run/import_maps/test_data.ts.out b/cli/tests/testdata/run/import_maps/test_data.ts.out
new file mode 100644
index 000000000..da996dc0d
--- /dev/null
+++ b/cli/tests/testdata/run/import_maps/test_data.ts.out
@@ -0,0 +1 @@
+Hello from remapped lodash!