Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

zz_links_test.gno

0.51 Kb · 19 lines
 1package linktree
 2
 3import (
 4	"strings"
 5	"testing"
 6
 7	"gno.land/p/nt/testutils/v0"
 8	"gno.land/p/nt/uassert/v0"
 9)
10
11// The index links each profile to this realm's own page. It once linked to
12// /r/REPLACE_ADDR/linktree.
13func TestIndexLinksNameThisRealm(cur realm, t *testing.T) {
14	who := testutils.TestAddress("linker")
15	testing.SetRealm(testing.NewUserRealm(who))
16	SetBio(cross(cur), "links")
17	out := Render("")
18	uassert.True(t, strings.Contains(out, "](/r/nym-moultest123/x/daily/linktree/v1:"+who.String()+")"), out)
19}