mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
fix nip19_test
This commit is contained in:
@@ -2,6 +2,7 @@ package nip19
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"github.com/nbd-wtf/go-nostr"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEncodeNpub(t *testing.T) {
|
func TestEncodeNpub(t *testing.T) {
|
||||||
@@ -52,7 +53,7 @@ func TestDecodeNprofile(t *testing.T) {
|
|||||||
if prefix != "nprofile" {
|
if prefix != "nprofile" {
|
||||||
t.Error("what")
|
t.Error("what")
|
||||||
}
|
}
|
||||||
pp, ok := data.(ProfilePointer)
|
pp, ok := data.(nostr.ProfilePointer)
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Error("value returned of wrong type")
|
t.Error("value returned of wrong type")
|
||||||
}
|
}
|
||||||
@@ -77,7 +78,7 @@ func TestDecodeOtherNprofile(t *testing.T) {
|
|||||||
if prefix != "nprofile" {
|
if prefix != "nprofile" {
|
||||||
t.Error("what")
|
t.Error("what")
|
||||||
}
|
}
|
||||||
pp, ok := data.(ProfilePointer)
|
pp, ok := data.(nostr.ProfilePointer)
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Error("value returned of wrong type")
|
t.Error("value returned of wrong type")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user