Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_21_a_filetest.gno

0.75 Kb · 28 lines
 1package main
 2
 3import (
 4	"testing"
 5
 6	boards2 "gno.land/r/gnoland/boards2/v1"
 7)
 8
 9const owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx
10
11func main() {
12	testing.SetRealm(testing.NewUserRealm(owner))
13
14	boards2.SetRealmNotice(cross, "This is a test realm message")
15
16	// Render content must contain the message
17	println(boards2.Render(""))
18}
19
20// Output:
21// > [!INFO] Notice
22// > This is a test realm message
23// # Boards
24// [Create Board](/r/gnoland/boards2/v1$help&func=CreateBoard&listed=true&name=) • [List Admin Users](/r/gnoland/boards2/v1:admin-users) • [Help](/r/gnoland/boards2/v1:help)
25//
26// ---
27// ### Currently there are no boards
28// Be the first to [create a new board](/r/gnoland/boards2/v1$help&func=CreateBoard&listed=true&name=) !