summaryrefslogtreecommitdiff
path: root/cli/tests/integration/npm_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r--cli/tests/integration/npm_tests.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index 0fd0cdb4b..25a39b68d 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -1760,6 +1760,15 @@ fn reload_info_not_found_cache_but_exists_remote() {
serde_json::from_str(&deno_dir.read_to_string(&registry_json_path))
.unwrap();
remove_version(&mut registry_json, version);
+ // for the purpose of this test, just remove the dist-tag as it might contain this version
+ registry_json
+ .as_object_mut()
+ .unwrap()
+ .get_mut("dist-tags")
+ .unwrap()
+ .as_object_mut()
+ .unwrap()
+ .remove("latest");
deno_dir.write(
&registry_json_path,
serde_json::to_string(&registry_json).unwrap(),