summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2023-12-15 11:27:10 +0100
committerGitHub <noreply@github.com>2023-12-15 10:27:10 +0000
commit62e3f5060ef9cc6a31b3e496dd15548c0abd07e6 (patch)
treee03148c86caebe8b23a8d5f04f9df9357769f7fb /cli/tests
parenta1870c70a1adcd58798541aa965c915afa6f6c89 (diff)
refactor: check if scope and package exist before publish (#21575)
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/publish_tests.rs14
-rw-r--r--cli/tests/testdata/publish/successful.out2
2 files changed, 5 insertions, 11 deletions
diff --git a/cli/tests/integration/publish_tests.rs b/cli/tests/integration/publish_tests.rs
index 6a40eabf6..9ba0a00c6 100644
--- a/cli/tests/integration/publish_tests.rs
+++ b/cli/tests/integration/publish_tests.rs
@@ -3,16 +3,10 @@
static TEST_REGISTRY_URL: &str = "http://127.0.0.1:4250";
pub fn env_vars_for_registry() -> Vec<(String, String)> {
- vec![
- (
- "DENO_REGISTRY_URL".to_string(),
- TEST_REGISTRY_URL.to_string(),
- ),
- (
- "DENO_REGISTRY_API_URL".to_string(),
- TEST_REGISTRY_URL.to_string(),
- ),
- ]
+ vec![(
+ "DENO_REGISTRY_URL".to_string(),
+ TEST_REGISTRY_URL.to_string(),
+ )]
}
itest!(no_token {
diff --git a/cli/tests/testdata/publish/successful.out b/cli/tests/testdata/publish/successful.out
index 1049bbdb4..a6a6a9bd4 100644
--- a/cli/tests/testdata/publish/successful.out
+++ b/cli/tests/testdata/publish/successful.out
@@ -1,3 +1,3 @@
Publishing @foo/bar@1.0.0 ...
Successfully published @foo/bar@1.0.0
-http://127.0.0.1:4250/@foo/bar/1.0.0_meta.json
+Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details