test: switch to test data file

We only added the file before, let's actually use it now
This commit is contained in:
William Casarin
2023-07-13 07:01:51 -07:00
parent fdaf785869
commit 7b73a54de5
4 changed files with 4 additions and 19 deletions

View File

@@ -538,16 +538,6 @@ struct ProfileView_Previews: PreviewProvider {
}
}
func test_damus_state() -> DamusState {
let pubkey = "3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681"
let damus = DamusState.empty
let prof = Profile(name: "damus", display_name: "damus", about: "iOS app!", picture: "https://damus.io/img/logo.png", banner: "", website: "https://damus.io", lud06: nil, lud16: "jb55@sendsats.lol", nip05: "damus.io", damus_donation: nil)
let tsprof = TimestampedProfile(profile: prof, timestamp: 0, event: test_event)
damus.profiles.add(id: pubkey, profile: tsprof)
return damus
}
struct KeyView: View {
let pubkey: String