diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-25 16:51:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 16:51:04 -0500 |
| commit | 34c14dbf995ab427a39642a478f183dd5a60005c (patch) | |
| tree | 67704f2b57bd796dc8ea13ec2ae6166f92058643 /cli/tests | |
| parent | c6c8c91a6e4b7a2b6eed02d3e2f5db25c124d9a0 (diff) | |
fix: support import map specified as data uri (#17531)
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/integration/run_tests.rs | 7 | ||||
| -rw-r--r-- | cli/tests/testdata/run/import_maps/test_data.ts | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/run/import_maps/test_data.ts.out | 1 |
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! |
