From 397080d94d8efdf2df95a1dc8dc82d4d7070028d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 28 Jun 2024 17:12:21 +0100 Subject: feat(login): login with nostr address via nip46 currently using patched version of rust-nostr with function to fetch nip46 relays from nip05 providers. this patch has been merged so it will make it into the next rust-nostr release. --- tests/login.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/login.rs b/tests/login.rs index 9da2a0e..4cc2dbe 100644 --- a/tests/login.rs +++ b/tests/login.rs @@ -3,7 +3,7 @@ use git::GitTestRepo; use serial_test::serial; use test_utils::*; -static EXPECTED_NSEC_PROMPT: &str = "login with bunker uri / nsec"; +static EXPECTED_NSEC_PROMPT: &str = "login with nostr address / nsec"; static EXPECTED_LOCAL_REPOSITORY_PROMPT: &str = "just for this repository?"; static EXPECTED_REQUIRE_PASSWORD_PROMPT: &str = "require password?"; static EXPECTED_SET_PASSWORD_PROMPT: &str = "encrypt with password"; @@ -909,7 +909,8 @@ mod with_offline_flag { #[test] fn prompts_for_nsec_until_valid() -> Result<()> { - let invalid_nsec_response = "invalid. try again with nostr address / nsec"; + let invalid_nsec_response = + "invalid. try again with nostr address / bunker uri / nsec"; let test_repo = GitTestRepo::default(); let mut p = CliTester::new_from_dir(&test_repo.dir, ["login", "--offline"]); -- cgit v1.2.3