summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorNayeem Rahman <muhammed.9939@gmail.com>2019-12-03 22:48:53 +0000
committerRy Dahl <ry@tinyclouds.org>2019-12-03 17:48:53 -0500
commit91da410fc3bfde76c3c8930c6f8bfd4d5f9b974e (patch)
tree30e8345ddba04915fc9417d0855a0ca08feb41ac /cli/tests/integration_tests.rs
parentee013102ff4ce75c1068b6e771ed120fc32a849d (diff)
feat: Add --no-remote, rename --no-fetch to --cached-only (#3417)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 3cc8039db..4eef5dbc6 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -296,10 +296,10 @@ itest!(_034_onload {
output: "034_onload.out",
});
-itest!(_035_no_fetch_flag {
+itest!(_035_cached_only_flag {
args:
- "--reload --no-fetch http://127.0.0.1:4545/cli/tests/019_media_types.ts",
- output: "035_no_fetch_flag.out",
+ "--reload --cached-only http://127.0.0.1:4545/cli/tests/019_media_types.ts",
+ output: "035_cached_only_flag.out",
exit_code: 1,
check_stderr: true,
http_server: true,
@@ -397,6 +397,15 @@ itest!(_051_wasm_import {
http_server: true,
});
+itest!(_052_no_remote_flag {
+ args:
+ "--reload --no-remote http://127.0.0.1:4545/cli/tests/019_media_types.ts",
+ output: "052_no_remote_flag.out",
+ exit_code: 1,
+ check_stderr: true,
+ http_server: true,
+});
+
itest!(lock_check_ok {
args: "run --lock=lock_check_ok.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts",
output: "003_relative_import.ts.out",