mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-28 23:01:41 +02:00
sdk: fix references test.
This commit is contained in:
@@ -2,6 +2,7 @@ package sdk
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"slices"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
@@ -57,7 +58,7 @@ func TestParseReferences(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
got := ParseReferences(&evt)
|
got := slices.Collect(ParseReferences(evt))
|
||||||
|
|
||||||
if len(got) != len(expected) {
|
if len(got) != len(expected) {
|
||||||
t.Errorf("got %d references, expected %d", len(got), len(expected))
|
t.Errorf("got %d references, expected %d", len(got), len(expected))
|
||||||
|
Reference in New Issue
Block a user