diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-04-07 20:54:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 11:24:47 -0400 |
commit | caff550b6c6edf7f26ca9e2aa57e042479c36704 (patch) | |
tree | a5f6ed78002cbbf40b9bf35962ef45fa5f793ccc /cli/tests | |
parent | 62726430bedba7cca4d98e7714f3a8b49db3e89e (diff) |
BREAKING: Rename 'deno fetch' subcommand to 'deno cache' (#4656)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/045_proxy_test.ts | 2 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 8 | ||||
-rw-r--r-- | cli/tests/lock_write_fetch.ts | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/045_proxy_test.ts b/cli/tests/045_proxy_test.ts index 6f8b45fd1..d9d63ea52 100644 --- a/cli/tests/045_proxy_test.ts +++ b/cli/tests/045_proxy_test.ts @@ -41,7 +41,7 @@ async function testModuleDownload(): Promise<void> { cmd: [ Deno.execPath(), "--reload", - "fetch", + "cache", "http://localhost:4545/std/examples/colors.ts", ], stdout: "piped", diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index c22d1cfd2..31a4a9c66 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -96,7 +96,7 @@ fn fetch_test() { let output = Command::new(deno_exe_path()) .env("DENO_DIR", deno_dir.path()) .current_dir(util::root_path()) - .arg("fetch") + .arg("cache") .arg(module_url.to_string()) .output() .expect("Failed to spawn script"); @@ -1031,12 +1031,12 @@ itest_ignore!(_035_cached_only_flag { itest!(_036_import_map_fetch { args: - "fetch --reload --importmap=importmaps/import_map.json importmaps/test.ts", + "cache --reload --importmap=importmaps/import_map.json importmaps/test.ts", output: "036_import_map_fetch.out", }); itest!(_037_fetch_multiple { - args: "fetch --reload fetch/test.ts fetch/other.ts", + args: "cache --reload fetch/test.ts fetch/other.ts", check_stderr: true, http_server: true, output: "037_fetch_multiple.out", @@ -1591,7 +1591,7 @@ fn cafile_fetch() { let output = Command::new(deno_exe_path()) .env("DENO_DIR", deno_dir.path()) .current_dir(util::root_path()) - .arg("fetch") + .arg("cache") .arg("--cert") .arg(cafile) .arg(module_url.to_string()) diff --git a/cli/tests/lock_write_fetch.ts b/cli/tests/lock_write_fetch.ts index 2e9735313..2286d7a0c 100644 --- a/cli/tests/lock_write_fetch.ts +++ b/cli/tests/lock_write_fetch.ts @@ -7,7 +7,7 @@ const fetchProc = Deno.run({ stderr: "null", cmd: [ Deno.execPath(), - "fetch", + "cache", "--reload", "--lock=lock_write_fetch.json", "--lock-write", @@ -23,7 +23,7 @@ const fetchCheckProc = Deno.run({ stderr: "null", cmd: [ Deno.execPath(), - "fetch", + "cache", "--lock=lock_write_fetch.json", "https_import.ts", ], |