diff options
author | crowlKats <crowlkats@gmail.com> | 2021-05-27 07:23:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 14:23:12 +0900 |
commit | b21fa78a1e8b2c9df549b29454970b39da708a5c (patch) | |
tree | 1282055ff7703d34dc78d526ffa8ffd0b5626bee /cli/tests | |
parent | d5d59bb794503416ced2c3ad6a2bb043f97ce3e5 (diff) |
feat(cli): add origin data dir to deno info (#10589)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/041_info_flag.out | 1 | ||||
-rw-r--r-- | cli/tests/041_info_flag_location.out | 6 | ||||
-rw-r--r-- | cli/tests/info_json.out | 3 | ||||
-rw-r--r-- | cli/tests/info_json_location.out | 8 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 10 |
5 files changed, 27 insertions, 1 deletions
diff --git a/cli/tests/041_info_flag.out b/cli/tests/041_info_flag.out index 4376c8156..ded795339 100644 --- a/cli/tests/041_info_flag.out +++ b/cli/tests/041_info_flag.out @@ -2,3 +2,4 @@ DENO_DIR location: "[WILDCARD]" Remote modules cache: "[WILDCARD]deps" Emitted modules cache: "[WILDCARD]gen" Language server registries cache: "[WILDCARD]registries" +Origin storage: "[WILDCARD]location_data" diff --git a/cli/tests/041_info_flag_location.out b/cli/tests/041_info_flag_location.out new file mode 100644 index 000000000..207065012 --- /dev/null +++ b/cli/tests/041_info_flag_location.out @@ -0,0 +1,6 @@ +DENO_DIR location: "[WILDCARD]" +Remote modules cache: "[WILDCARD]deps" +Emitted modules cache: "[WILDCARD]gen" +Language server registries cache: "[WILDCARD]registries" +Origin storage: "[WILDCARD]location_data[WILDCARD]" +Local Storage: "[WILDCARD]location_data[WILDCARD]local_storage" diff --git a/cli/tests/info_json.out b/cli/tests/info_json.out index d7be26375..a0d316307 100644 --- a/cli/tests/info_json.out +++ b/cli/tests/info_json.out @@ -2,5 +2,6 @@ "denoDir": "[WILDCARD]", "modulesCache": "[WILDCARD]deps", "typescriptCache": "[WILDCARD]gen", - "registryCache": "[WILDCARD]registries" + "registryCache": "[WILDCARD]registries", + "originStorage": "[WILDCARD]location_data" }
\ No newline at end of file diff --git a/cli/tests/info_json_location.out b/cli/tests/info_json_location.out new file mode 100644 index 000000000..dd9377d3b --- /dev/null +++ b/cli/tests/info_json_location.out @@ -0,0 +1,8 @@ +{ + "denoDir": "[WILDCARD]", + "modulesCache": "[WILDCARD]deps", + "typescriptCache": "[WILDCARD]gen", + "registryCache": "[WILDCARD]registries", + "originStorage": "[WILDCARD]location_data[WILDCARD]", + "localStorage": "[WILDCARD]location_data[WILDCARD]local_storage" +}
\ No newline at end of file diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index dcde0d057..5188c60ba 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2846,11 +2846,21 @@ console.log("finish"); output: "041_info_flag.out", }); + itest!(_042_info_flag_location { + args: "info --location https://deno.land", + output: "041_info_flag_location.out", + }); + itest!(info_json { args: "info --json --unstable", output: "info_json.out", }); + itest!(info_json_location { + args: "info --json --unstable --location https://deno.land", + output: "info_json_location.out", + }); + itest!(_042_dyn_import_evalcontext { args: "run --quiet --allow-read --reload 042_dyn_import_evalcontext.ts", output: "042_dyn_import_evalcontext.ts.out", |