Skip to content

Commit

Permalink
sdk: fix references test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Jan 1, 2025
1 parent c2c08ab commit a7a66ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/references_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sdk

import (
"fmt"
"slices"
"testing"

"github.com/nbd-wtf/go-nostr"
Expand Down Expand Up @@ -57,7 +58,7 @@ func TestParseReferences(t *testing.T) {
},
}

got := ParseReferences(&evt)
got := slices.Collect(ParseReferences(evt))

if len(got) != len(expected) {
t.Errorf("got %d references, expected %d", len(got), len(expected))
Expand Down

0 comments on commit a7a66ad

Please sign in to comment.