fix nip19_test

This commit is contained in:
Dylan Cant
2023-02-06 19:19:52 -05:00
committed by fiatjaf
parent ab2db2dfc5
commit 72386d27e1

View File

@@ -2,6 +2,7 @@ package nip19
import (
"testing"
"github.com/nbd-wtf/go-nostr"
)
func TestEncodeNpub(t *testing.T) {
@@ -52,7 +53,7 @@ func TestDecodeNprofile(t *testing.T) {
if prefix != "nprofile" {
t.Error("what")
}
pp, ok := data.(ProfilePointer)
pp, ok := data.(nostr.ProfilePointer)
if !ok {
t.Error("value returned of wrong type")
}
@@ -77,7 +78,7 @@ func TestDecodeOtherNprofile(t *testing.T) {
if prefix != "nprofile" {
t.Error("what")
}
pp, ok := data.(ProfilePointer)
pp, ok := data.(nostr.ProfilePointer)
if !ok {
t.Error("value returned of wrong type")
}